C语言总共有32个关键字:
auto | break(4.3.2) | case(4.5) |
char(2.3.3,5.1) | const(5.3.5) | continue(4.3.2) |
default(4.5) | do(4.3.1) | double(2.3.2) |
else(3.6.1) | enum(8.4) | extern(5.3.1) |
float(2.3.2,5.1) | for(3.6.3) | goto(4.3.2) |
if(3.6.1) | int(2.3.1,5.1) | long(2.3.1,5.1) |
register(5.3.5) | return(3.3.1,3.2.3,5.2.4) | short(5.1) |
signed(5.1) | sizeof(6.2) | static(5.3.4,5.3.5) |
struct(8.1.1) | switch(4.5) | typedef(7.6) |
union(8.3) | unsigned(5.1) | void(3.3.1,5.2.4) |
volatile | while(3.6.2,4.3.1) |
注:关键字auto用于说明自动变量,通常不用;volatile(易变的)表示该变量不经过赋值,其值也可能被改变(例如表示时钟的变量、表示通信端口的变量等)。