Answers to questions on identifiers
- Which of the following is legal and which is not as a C identifier:
Illegal, starts with a digit.
Legal, matches definition.
Legal, underscore is allowed anywhere in an identifier.
Illegal, dollar is not a legal character in an identifier.
Back to the notes on identifiers