Hello,
I have a quick question about c/c++ syntax. Basically I am wondering when it is allowable to have numbers in identifiers. My compiler happens to allow numbers in:
- Function names
- Class names
- Variable names
- Pre-processor names
As long as they do not begin with numbers. Is this standard functionality? I just ask because it feels weird to have a function called euler2 (for calculating eulerian numbers of the second kind). Is there any reason I should rename it to eulerTwo?
I checked the ISO C specification and it seems to suggest that it should be okay for all identifiers, but then it is rather vague about what identifiers are, exactly.
For now I am assuming that this is okay, I just wanted to double check and could not find anything else about this online.
Thanks.