TOKENS:
The smallest individual units in program are known as tokens. C++ has the following tokens. i. Keywords ii. Identifiers iii. Constants iv. Strings v. Operators
KEYWORDS:
The keywords implement specific C++ language feature. They are explicitly reserved identifiers and can’t be used as names for the program variables or other user defined program elements. The keywords not found in ANSI C are shown in red letter.
C++ KEYWORDS:
Asm double new switch
Auto else operator template
Break enum private this
Case extern protected throw
Catch float public try
Char for register typedef
Class friend return union
Const goto short unsigned
Continue if signed virtual
Default inline sizeof void
Delete long struct while
IDENTIFIERS:
Identifiers refers to the name of variable , functions, array, class etc. created by programmer. Each language has its own rule for naming the identifiers.
The following rules are common for both C and C++.
1. Only alphabetic chars, digits and under score are permitted.
2. The name can’t start with a digit.
3. Upper case and lower case letters are distinct.
4. A declared keyword can’t be used as a variable name.
In ANSI C the maximum length of a variable is 32 chars but in c++ there is no bar.
ALSO SEARCH:
"Keyword"
"C++ tokens keywords and identifiers"
"keywords in C++ tokens"
"tokens keywords identifiers and constants in C++"
"tokens keywords identifiers and constants in C++ "
"C++ tokens example"
"keywords in C++"
"identifiers in C++"
"keywords in C++ tokens"