Keywords are preserved words that have special meaning in C language. The meaning of C language keywords has already been described to the C compiler. These meaning cannot be changed. Thus, keywords cannot be used as variable names because that would try to change the existing meaning of the keyword, which is not allowed.(Don't worry if you do not know what variables are, you will soon understand.) There are total 32 keywords in C language.
auto | double | int | struct |
break | else | long | switch |
case | enum | register | typedef |
const | extern | return | union |
char | float | short | unsigned |
continue | for | signed | volatile |
default | goto | sizeof | void |
do | if | static | while |
In C language identifiers are the names given to variables, constants, functions and user-define data. These identifier are defined against a set of rules.
_
)._
).When we declare a variable or any function in C language program, to use it we must provide a name to it, which identified it throughout the program, for example:
int myvariable = "Studytonight";
Here myvariable
is the name or identifier for the variable which stores the value "Studytonight" in it.
In C language characters are grouped into the following catagories,
:
, semicolon ;
, period .
, underscore _
, ampersand &
etc).Here is a quick video to explain all about keywords and Identifiers.