Keyword in C plus Plus

A keyword in C plus plus is a reserved word. You cannot use it as a variable name, constant name etc. A list of 32 Keywords in C++ Language which are also available in C language are given below.

autobreakcasecharconstcontinuedefaultdo
doubleelseenumexternfloatforgotoif
intlongregisterreturnshortsignedsizeofstatic
structswitchtypedefunionunsignedvoidvolatilewhile

 

 

A list of 30 Keywords in C++ Language which are not available in C language are given below.

 

asmdynamic_castnamespacereinterpret_castbool
explicitnewstatic_castfalsecatch
operatortemplatefriendprivateclass
thisinlinepublicthrowconst_cast
deletemutableprotectedtruetry
typeidtypenameusingvirtualwchar_t