C++ Keywords



In C++, keywords are reserved identifiers which cannot be used as names for the variables in a program.

C++ Keyword List :

asm else operator template
auto enum private this
break extern protected throw
case float public try
catch for register typedef
char friend return union
class goto short unsigned
const if signed virtual
continue inline sizeof void
default int static volatile
delete long struct while
double new switch -

Keywords cannot be used for the –

  1. Declaring Variable Name
  2. Declaring Class Name
  3. Declaring Function Name
  4. Declaring Object Name