Where can I find what is the maximum identifier length in C?
In which header file is that limit specified?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no header file to contain the identifier length limit; even if there were, how could it help you? You can’t change your identifier lengths at compile time based on a value in a header file anyway.
The C standard, section 5.2.4.1 says:
It also contains a footnote:
So you should check your documentation to see if your compiler supports a greater number of significant characters in identifiers.