C++ Keywords


Prev Tutorial Next Tutorial

Keywords in C++

Keyword is a predefined or reserved word in C++ library with a fixed meaning and used to perform an internal operation. C++ Language supports more than 64 keywords.

Every Keyword exists in lower case latter like auto, break, case, const, continue, int etc.

32 Keywords in C++ Language which is also availabe in C language.

autodoubleintstruct
breakelselongswitch
caseenumregistertypedef
charexternreturnunion
constfloatshortunsigned
continueforsignedvoid
defaultgotosizeofvolatile
doifstaticwhile

Another 30 reserved words that were not in C, these are new to C++

asmdynamic_castnamespacereinterpret_cast
boolexplicitnewstatic_cast
catchfalseoperatortemplate
classfriendprivatethis
const_castinlinepublicthrow
deletemutableprotectedtrue
trytypeidtypenameusing
usingvirtualwchar_t

Note: you can not use these keyword for variable and not overload.


Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements