Short answer: Compiler specific.

Long answer: According to K&R Second Edition, a variable name may be of any length; however, only the first 31 characters are significant. Compilers are free to extend this beyond 31, and may make any number of characters significant.