Identifiers in C++

In this lesson, you will study identifiers.

Identifiers

A variable in C++ is given a unique name that is known as an identifier.

✏️ Best coding practice: Use descriptive and meaningful names for the variables to make the code self-explanatory.

Rules for naming a variable

The general rules for naming a variable are:

  • An identifier can only contain uppercase alphabets (A to Z), lowercase alphabets (a to z),
...