What is the maximum variable def length in ANSI C.
I think it is 32 characters. Is this correct?
What is the maximum variable def length in ANSI C.
I think it is 32 characters. Is this correct?
Variable name length is what I meant.
31 characters for an internal variable and 6 characters for an external variable. See C89 Draft: Translation Limits. Many/most compilers support more than this.
Or in C99:
- 63 significant initial characters in an internal identifier or a macro name (each
universal character name or extended source character is considered a single
character)
- 31 significant initial characters in an external identifier (each universal character name
specifying a character short identifier of 0000FFFF or less is considered 6 characters,
each universal character name specifying a character short identifier of 00010000 or
more is considered 10 characters, and each extended source character is considered
the same number of characters as the corresponding universal character name, if any)