You are on page 1of 2

C/C++ Keywords

asm
auto
bool
break
case
catch
char
class
const
const_cast
continue
default
delete
do
double
dynamic_cast
else
enum
explicit
export
extern
false
float
for
friend
goto
if
inline
int
long
mutable
namespace
new
operator
private
protected
public

insert an assembly instruction


declare a local variable
declare a boolean variable
break out of a loop
a block of code in a switch statement
handles exceptions from throw
declare a character variable
declare a class
declare immutable data or functions that do not change data
cast from const variables
bypass iterations of a loop
default handler in a case statement
make memory available
looping construct
declare a double precision floating-point variable
perform runtime casts
alternate case for an if statement
create enumeration types
only use constructors when they exactly match
allows template definitions to be separated from their declarations
tell the compiler about variables defined elsewhere
the boolean value of false
declare a floating-point variable
looping construct
grant non-member function access to private data
jump to a different part of the program
execute code based off of the result of a test
optimize calls to short functions
declare a integer variable
declare a long integer variable
override a const variable
partition the global namespace by defining a scope
allocate dynamic memory for a new variable
create overloaded operator functions
declare private members of a class
declare protected members of a class
declare public members of a class

Lfzxpset!D0D,,!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Qbhf!2!pg!3!

register
request that a variable be optimized for speed
reinterpret_cast change the type of a variable
return
return from a function
short
declare a short integer variable
signed
modify variable type declarations
sizeof
return the size of a variable or type
static
create permanent storage for a variable
static_cast
perform a nonpolymorphic cast
struct
define a new structure
switch
execute code based off of different possible values for a variable
template
create generic functions
this
a pointer to the current object
throw
throws an exception
true
the boolean value of true
try
execute code that can throw an exception
typedef
create a new type name from an existing type
typeid
describes an object
typename
declare a class or undefined type
a structure that assigns multiple variables to the same memory
union
location
declare an unsigned integer variable
unsigned
using
import complete or partial namespaces into the current scope
virtual
create a function that can be overridden by a derived class
void
declare functions or data with no associated data type
volatile
warn the compiler about variables that can be modified unexpectedly
wchar_t
declare a wide-character variable
while
looping construct

Lfzxpset!D0D,,!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Qbhf!3!pg!3!

You might also like