C Keywords
The keywords, also known as ‘reserved words’ have special meanings to C compiler.
- All keywords in C are lowercase.
- An identifier may contain a keyword as part of its name, but an identifier cannot have same case and spelling as a C keyword.
- The keywords are case sensitive. For example, the identifier with the name FOR is allowed, but is a bad programming practice and not recommended.
Following is a list of keywords available in ANSI C.
auto | double | int | struct |
break | else | long | switch |
case | enum | register | typedef |
char | extern | return | union |
continue | for | signed | void |
do | if | static | while |
default | goto | sizeof | volatile |
const | float | short | unsigned |
We will learn more about usage of these keywords in upcoming lessons.