Identifiers in C++ Language

Identifiers in C++ Language:

(1) In C++ Language, Identifiers are nothing but variables. It is recommended to define variable names as unique and more descriptive. Like

  • int myInt → myInt is Identifier
  • double myDouble → myDouble is Identifier
  • char myChar → myChar is Identifier.
  • stringmyString → myString is Identifier
  • bool myBool → myBool is identifier

(2) Rules for defining Identifiers.

  • Identifiers can contain letters, numeric and underscore.
  • Identifiers are case sensitive.
  • Identifiers cannot contain space or special characters like !, @, $,^ ,* etc.
  • Identifiers must begin with Letter or Underscore.

(3) Example as shown.

C++ Language identifiers sample code

Logical Operators in C Language
If Else condition in C Language
SWITCH Statement in C Language
FOR Loop in C Language
Use of REPEAT-UNTIL in Dynamics 365
Understanding the General Ledger and the COA– Microsoft

Leave a Reply