C关键字(括号数字是《从问题到程序》中的章节编号)

C语言总共有32个关键字:
 
auto break4.3.2 case4.5
char2.3.35.1 const5.3.5 continue4.3.2
default4.5 do4.3.1 double2.3.2
else3.6.1 enum8.4 extern5.3.1
float2.3.25.1 for3.6.3 goto4.3.2
if3.6.1 int2.3.15.1 long2.3.15.1
register5.3.5 return3.3.13.2.35.2.4 short5.1
signed5.1 sizeof6.2 static5.3.45.3.5
struct8.1.1 switch4.5 typedef7.6
union8.3 unsigned5.1 void3.3.15.2.4
volatile while3.6.24.3.1  

注:关键字auto用于说明自动变量,通常不用;volatile(易变的)表示该变量不经过赋值,其值也可能被改变(例如表示时钟的变量、表示通信端口的变量等)。