1.

Write the rules to be followed, while naming the identifier.

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.


Discussion

No Comment Found