Identifiers in C Language

Identifiers in C Language

Identifier in 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.

  1. Note: Keep the identifier name maximum 8 characters long.


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

Leave a Reply

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