Identifiers in C Plus Plus

Identifiers are the name of variables, constants, functions, arrays, classes etc.
 
There are some rules to provide name to the variable, constants 
 
  1. Only alphabets, digits and underscores are allowed.
    int var1;
    int first_number;
  2. Uppercase and lowercase are different.
    int personAge;
    int PERSONAGE;
  3. Keyword defined in programming language are not permitted.
    int for;
  4. The name can not start with a digit.
    int 1var;
© 2016 - 2022, All Rights are Reserved.