Identifiers of C Language

Identifiers are the name given to a variable, function, array, structure etc. There are some rules for declaring an identifier:

  1. The identifier name must contain only alphabets, digits or an underscore.
  2. First character of an identifier must be either an alphabet or an underscore.
  3. Keywords can’t be used as an identifier name.
  4. Upper case and lower case identifiers are different.
  5. Space is not allowed between identifiers.

Note: Keep the identifier name maximum 8 characters long.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *