Keywords are identifiers reserved by the language for special
use. Although you can use them for preprocessor macro names, it is poor
programming style. Only the exact spelling of keywords is
reserved. For example, auto is reserved but AUTO
is not. The following lists the keywords common to both the C and C++
languages:
auto break case char const continue default do |
double else enum extern float for goto if |
int long register return short signed sizeof static |
struct switch typedef union unsigned void volatile while |
The C++ language also reserves the following keywords:
asm bool catch class const_cast delete dynamic_cast explicit |
export false friend inline mutable namespace new operator |
private protected public reinterpret_cast static_cast template this throw |
true try typeid typename using virtual wchar_t |
In addition to standard language keywords, ILE C/C++ reserves identifiers for
language extensions and for future use. The following keywords are
reserved for use in language extensions:
decimal _Decimal |
__align __alignof |
_Packed |
__ptr128 __ptr64 |
Related References
In addition to the reserved language keywords, the following alternative
representations of operators and punctuators are also reserved in C and
C++:
and and_eq bitand |
bitor compl not |
not_eq or or_eq |
xor xor_eq |
Related References
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.