The following tables list the keywords for the ISO C Standard, the Sun ISO C compiler, and the Sun C compiler.
The first table lists the keywords defined by the ISO C standard.
Table H–2 ISO C Standard Keywords|
_Bool1 |
_Complex1 |
_Imaginary1 |
auto |
|
break |
case |
char |
const |
|
continue |
default |
do |
double |
|
else |
enum |
extern |
float |
|
for |
goto |
if |
inline1 |
|
int |
long |
register |
restrict |
|
return |
short |
signed |
sizeof |
|
static |
struct |
switch |
typedef |
|
union |
unsigned |
void |
volatile |
|
while |
|
|
|
The C compiler also defines one additional keyword, asm. However, asm is not supported in -Xc mode.
Keywords in Sun C are listed below.
Table H–3 Sun C (K&R) Keywords|
asm |
auto |
break |
case |
|
char |
continue |
default |
do |
|
double |
else |
enum |
extern |
|
float |
for |
fortran |
goto |
|
if |
int |
long |
register |
|
return |
short |
sizeof |
static |
|
struct |
switch |
typedef |
union |
|
unsigned |
void |
while |
|