The tokens which have predefined meaning in C language are called keywords.C programs are constructed from a set of reserved words which provide control from libraries which perform some special functions, these reserved words in C library are called keywords.
auto |
double |
int |
struct |
break |
else |
long |
switch |
case |
enum |
register |
typedef |
char |
extern |
return |
union |
const |
float |
short |
unsigned |
continue |
for |
signed |
void |
default |
goto |
sizeof |
volatile |
do |
if |
static |
while |
Rules followed while using the keywords:-
- The keywords should not be used as variable, function names, array names etc.
- The meaning of the keywords cannot be changed by the user.
- All keywords should be written in lower case letters.
Note: We should never use capital letters while using keywords.If we use capital letters for keywords, they are treated as an identifiers.