What are the keywords in C++
Categories:
less than a minute
C++ has a set of reserved keywords that have special meanings to the compiler. These keywords cannot be used as identifiers (names for variables, functions, classes, etc.). Here is a list of C++ keywords:
alignasalignofandand_eqasmautobitandbitorboolbreakcasecatchcharchar8_tchar16_tchar32_tclasscomplconceptconstconstevalconstexprconstinitconst_castcontinueco_awaitco_returnco_yielddecltypedefaultdeletedodoubledynamic_castelseenumexplicitexportexternfalsefloatforfriendgotoifinlineintlongmutablenamespacenewnoexceptnotnot_eqnullptroperatororor_eqprivateprotectedpublicregisterreinterpret_castrequiresreturnshortsignedsizeofstaticstatic_assertstatic_caststructswitchtemplatethisthread_localthrowtruetrytypedeftypeidtypenameunionunsignedusingvirtualvoidvolatilewchar_twhilexorxor_eqPlease note that some of these keywords are only available in newer versions of C++.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.