Tuesday, 7 July 2015

KEY WORDS

Reserve keywords in CPP compiler

C++ uses a number of keywords to identify operations and data descriptions; therefore, identifiers created by a programmer cannot match these keywords. The standard reserved keywords that cannot be used for programmer created identifiers or variables are:

alignas,
 alignof,
 and,
 and_eq,
 asm,
 auto,
 bitand,
 bitor,
 bool,
 break,
 case,
 catch,
 char,
 char16_t,
 char32_t,
 class,
 compl,
 const,
 constexpr,
 const_cast,
 continue,
 decltype,
 default,
 delete,
 do,
 double,
 dynamic_cast,
 else,
 enum,
 explicit,
 export,
 extern,
 false,
 float,
for, 
friend, 
goto, 
if, 
inline,
 int, 
long, 
mutable,
 namespace, 
new, 
noexcept,
 not, 
not_eq,
 nullptr,
 operator,
 or,
 or_eq, 
private,
 protected,
 public, 
register, 
reinterpret_cast,
 return, 
short, 
signed, 
sizeof, 
static,
 static_assert, 
static_cast,
 struct,
 switch,
 template,
 this, 
thread_local,
 throw, 
true, 
try, 
typedef, 
typeid, 
typename,
 union, 
unsigned, 
using,
 virtual, 
void, 
volatile, 
wchar_t, 
while, 
xor, 
xor
_eq

Specific compilers may also have additional specific reserved keywords.

No comments:

Post a Comment