C++ Keywords

C++ Keywords

C++ keywords implements specific C++ language features. They’re explicitly reserved identifiers and cannot be used as names for the program variables are other user defined program elements. The following table gives the complete set up C++ keywords. The keywords not found in ANSI are sown in bald face. These keywords had been added to the ANSI two words in other to enhance its features and make it an object oriented language.

C++ Keywords

Asm
Dubble
New
Switch
Auto
else
Operator
template
Break
enum
private
This
case
Extern
Protected
through
catch
float
public
try
Char
For
Register
Typedef
class
Friend
return
union
Const
go to
Sort
unsigned
Continue
If
Signed
Virtual
Default
Inline
Sizeof
void
Delete
int
Static
volatile
Do
long
Struct
While

C++ Identifiers

C++ Identifiers refer to the names of variables, functions, array, classes etc. created by the programmers. They are the fundamental requirements of any language. Each language has its own rules for naming these identifiers.
The following rules are common stock in both C and C++.
1. Only alphabetic characters, digits, and underscores are permitted.
2. The name cannot start with a digit.
3. Uppercase and lowercase letters deistic.
4. They declared a keyword cannot be used as a variable name.

Leave a Reply

Your email address will not be published.