|Rules for an identifiers|
Identifiers in C++ : Rules for an Identifier
Identifiers are the names given to the different entities of the program such as functions, variables, constant, classes, structures, etc. Since identifiers refers to a particular entity of a program so it must be unique for every entities.
Rules for an Identifier:
- An Identifier can only have alphanumeric characters(a-z , A-Z , 0-9) and underscore(_).
- The starting character of identifier can only contain alphabet(a-z , A-Z) or underscore (_).
- Identifiers are case sensitive (Similar is in C). For example name and Name are two different identifiers.
- Keywords are not allowed to be used as Identifiers.
- No special characters or Symbols, such as semicolon, period, whitespaces, slash or comma are permitted to be used in or as Identifier.