+3 votes
in Class 12 by kratos

What are identifiers? Write the rules of naming identifiers in C++.

1 Answer

+5 votes
by kratos
 
Best answer

The identifier is a sequence of characters taken from the C++ character set.

The rules for the formation of an identifier are:

  • It can consist of alphabets, digits and/or underscores.
  • It must not start with a digit
  • C++ is case sensitive, that is upper and lower case letters are considered as different from each other.
  • It should not be a reserved keyword.
...