Frederick Navarro wrote:
> Does C or C++ have a limit/max capacity of the number of characters to be
> used for its variable name?
I believe that the limit is imposed by the implementation and not the
ANSI standard. Meaning that it's the compiler's choice as to what the
limit is. So on some systems it could be a small number of characters
while other implementations might allow almost unlimited variable names.
I'd imagine that info is buried somewhere in the documentation for the
compiler. I'm having no luck finding the limit for GCC however.
"Hold No Punches.." Rode brings you great shareware/freeware
programs with his honest opinions in this weekly column.
http://freepctech.com/rode
|