View Full Version : Another question

05-24-2014, 09:32 AM
Um, this may be just part of the teacher's bias, but in my class, I'm supposed to answer a few questions, and one of them is "when should variables be named in all uppercase letters?" I looked through all of her course material, but I couldn't find her answer. Is there some rule in general programming about naming variables that I don't know about? It might just be that this is my teacher's opinion, but I can't find her answer.


05-25-2014, 09:07 AM
It is common for global variables and constants, and the names of macros to be defined in all caps. This is a widely used convention but is not required in any language I can remember working with.


05-25-2014, 08:48 PM
i hold my ground

den led tiet kiem dien (http://elek.vn)cua cong ty chung toi