C++ Keywords E
The words listed in the following table are reserved for C++ declarations and
operations and may not be employed as variable names in a program.
Keyword Use
asm Insert an assembly language instruction
auto Declare a local variable
bool Declare a Boolean variable
break Break out of a loop
case Introduce a block of code in a switch statement
catch Handle exceptions from throw
char Declare a character variable
class Declare a class
const Declare immutable data or functions
that do not change data
constcast Cast from const variables
continue Bypass iterations of a loop
default Default handler in a case statement
delete Delete an object to free memory
do Looping construct
double Declare a double precision floating-point variable
dynamiccast Perform runtime casts
else Alternate case for an if statement
enum Create enumeration types
explicit Use constructors only when they exactly match
export Allow template definition to be
separated from declaration
extern External variables are defined in another
program or file and evaluated upon linking
false Boolean value of false
float Declare a floating-point variable
for Looping construct
friend Grant a non-member function access to private data
goto Jump to a different part of the program