The following tables list the keywords for the ANSI/ISO C Standard, the Sun ANSI/ISO C compiler, and the Sun C compiler.
The first table lists the keywords defined by the ANSI/ISO C standard.
Table G-2 ANSI/ISO C Standard Keywordsauto | 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 |
Sun ANSI/ISO defines one additional keyword, asm. However, asm is not supported in -Xc mode.
Keywords in Sun C are listed below.
Table G-3 Sun C (K&R) Keywordsasm | 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 |