Sams Teach Yourself C in 21 Days

(singke) #1
C/C++ Reserved Words 791

B


switch Command used to change program flow in a multitude of directions. Used in
conjunction with the casestatement.
typedef Modifier used to create new names for existing variable and function types.
union Keyword used to allow multiple variables to share the same memory space.
unsigned Modifier used to signify that a variable will contain only positive values. See
signed.
void Keyword used to signify either that a function doesn’t return anything or that a
pointer being used is considered generic or able to point to any data type.
volatile Modifier that signifies that a variable can be changed. See const.
while Looping statement that executes a section of code as long as a condition
remainsTRUE.
_Bool A type large enough to store a value of 0 or 1.
_Complex Support for complex types. It is not required that that _Complexbe supported.
_Imaginary Support for imaginary types. It is not required that that _Imaginarybe sup-
ported.

In addition to the preceding keywords, the following are C++ reserved words:
catch new template
class operator this
delete private throw
except protected try
finally public virtual
friend

TABLEB.1 continued
Keyword Description

45 448201x-APP B 8/13/02 11:15 AM Page 791

Free download pdf