Legal Identifiers (Answer)
Is each of these a legal C identifier?
Yes. The underscore is treated as a letter.
Yes. The underscore really is treated as a letter. Even
___ is an identifier.
No. Starts with 23.
Yes. The underscore is still treated as a letter.
Yes. Since C is case-sensitive,
WHILE is different
WHILE is not a keyword, so it
is an identifier. It would not be good style to use it as an
identifier, however, since it would be rather confusing.
|Question||Assignment and Side Effects I|