C Keywords
The C language reserves certain words that have special meanings to the language. Those reserved words are sometimes called C keywords. You should not use the C keywords as variable, constant, or function names in your program. The following are the 32 reserved C keywords:
Keyword | Description |
auto | Storage class specifier |
break | Statement |
case | Statement |
char | Type specifier |
const | Storage class modifier |
continue | Statement |
default | Label |
do | Statement |
double | Type specifier |
else | Statement |
enum | Type specifier |
extern | Storage class specifier |
float | Type specifier |
for | Statement |
goto | Statement |
if | Statement |
int | Type specifier |
long | Type specifier |
register | Storage class specifier |
return | Statement |
short | Type specifier |
signed | Type specifier |
sizeof | Operator |
static | Storage class specifier |
struct | Type specifier |
switch | Statement |
typedef | Statement |
union | Type specifier |
unsigned | Type specifier |
void | Type specifier |
volatile | Storage class modifier |
while | Statement |
Don't worry if you can't remember all the C keywords the first time through. In the rest of the book, you'll become more familiar with them and start to use many of the keywords through examples and exercises.
Note that all C keywords are written in lowercase letters. As I've mentioned, C is a case-sensitive language. Therefore, int, as shown in the list here, is considered as a C keyword, but INT is not.
- 394 views