C++ Keywords

The C++ Keywords must be in your knowledge because you can not use them as a variable name.

C++ Keywords List

You can't use keyword as identifier in your C++ programs, its reserved words in C++ library and used to perform an internal operation.

asmelsenewthis
autoenumoperatorthrow
boolexplicitprivatetrue
breakexportprotectedtry
caseexternpublictypedef
catchfalseregistertypeid
charfloatreinterpret_casttypename
classforreturnunion
constfriendshortunsigned
const_castgotosignedusing
continueifsizeofvirtual
defaultinlinestaticvoid
deleteintstatic_castvolatile
dolongstructwchar_t
doublemutableswitchwhile
dynamic_castnamespacetemplate

In addition, the following words are also reserved:

Andbitornot_eqxor
and_eqcomplorxor_eq
bitandnotor_eq
You should also try to avoid using names from the C++ library, e.g. swap, max.

Scroll Back to Top