Quote:
|
Originally Posted by newdigital
Some people using g for global variables only like
this:
int g_Lots;
void Function1 (int param1)
Is it still usable?
|
Yes, this is a good programming practice, and it called
Hungarian notation.
Hungarian notation is a naming convention in programming, in which the name of a variable (or function) indicates its type or intended use.
You prefixed every variable name with the first letter of the variable type, and that's what Hungarian notation mean.