Commonly Accepted Variable Name Formatting - C/C++ -
i realize can matter of preference, have noticed variables names in lot of code samples i've seen have prefix of g_, s_, m_, or _. commonly accepted practice, , these prefixes mean? there others know?
g_global variables_staticm_member (an instance variable)_either member, or more private member (both usages turn up)
this common enough many developers know it, although not (to knowledge) universally accepted. don't think missing others.
update: integrating comments below better visibility
_can used denote local variable (this 1 isn't "standard")kcan used denote constant
Comments
Post a Comment