Keywords

Keywords are the vocabulary of C. Because they are special to C, you can't use them for variable names. Many of these keywords specify various types, such as int. Others, such as if, are used to control the order in which program statements are executed. In the following list of C keywords, boldface indicates keywords added by the ANSI C standard, and italics indicate new keywords proposed by the C9X committee for the next version of the standard.

Table . ANSI C Keywords
autodoubleinlinestatic
breakelseintstruct
caseenumlongswitch
charexternregistertypedef
complexfloatrestrictunion
constforreturnunsigned
continuegotoshortvoid
defaultifsignedvolatile
doimaginarysizeofwhile

Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.