ILE C/C++ Language Reference

Keywords

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

C++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

Keywords for language extensions

OS/400 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

Alternative Representations of Operators and Punctuators

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]