• Register

An identifier that cannot be used as a variable name is known as a reserved word such as the name of a variable, function or label. This is the syntactic definition and a reserved word has no meaning.

The number of reserved words:

There is a total of 95 reserved words in C++. The reserved words of C++ may be placed into many groups. In the first group, we put those that are also present in the C programming language and have been carried over into C++. These are 32 of these.

There are 30 reserved words that were not in C and therefore new to C++ programming language.

Words not essential in ASCII:

There are 11 C++ reserved words that are not essential when the standard ASCII characters set is being used but now they have added to provide more readable alternatives for a few of the C++ operators and also facilitate programming language with a character set that lack characters required by C++.

Some Examples of reserved words;

 

alignas (since C++11)

alignof (since C++11)

and

and

and_eq

asm

atomic_cancel (TM TS)

atomic_commit (TM TS)

atomic_noexcept (TM TS)

auto(1)

bitand

bitor

bool

break

case

catch

char

char16_t (since C++11)

char32_t (since C++11)

class(1)

compl

  
   
   
   
   
   
   

 

posted Jul 3 in c++ 160 points