C++ Keywords

C++ Keywords: Keywords in C++ are nothing but a reserved words in C++ Library. We cannot use them as a variable names, constant names etc.

C++ Keywords List

List of words which are present in C++

asm else new
auto enum operator
bool explicit private
break export protected
case extern public
catch false register
char float reinterpret_cast
class for return
const friend short
const_cast goto signed
continue if sizeof
default inline static
delete int static_cast
do long struct
double mutable switch
dynamic_cast namespace template
this throw true
try typedef typeid
typename union unsigned
using virtual void
volatile wchar_t while

In addition to this, we are having other which are also reserved.



And bitor not_eq xor
and_eq compl or or_eq
bitand not or_eq

Keywords which are also present in C

auto break case
char const continue
default do double
else enum extern
float for goto
if int long
register return short
signed sizeof static
struct switch typedef
union unsigned void
volatile while

Which are not available in C Language

asm dynamic_cast namespace
reinterpret_cast bool explicit
new static_cast false
catch operator template
friend private class
this inline public
throw const_cast delete
mutable protected true
try typeid typename
using virtual wchar_t