Identifiers and Keywords


Identifiers and Keywords 

Identifiers are names given to various program elements ,such as variable, functions and array .
Identifiers consist of letters and digits in any order ,expect that the first character must be a letter.
The _ (underscore symbol)  can also be included .
An identifier may also begin with an underscore.


The Following names are examples of valid identifiers .
·      X
·      Y12
·      Sum1
·      area
·      a
·      _temperature
·      sum_2
·      Name
·      TABLE
·      Tax_rate

There are certain reserved words called Keywords .
There are 32 keywords in C.
Keywords have standard predefined meaning in c.
They cannot be used as user defined keywords.
The following are the 32 keywords in C.

auto
static
extern
register
char
int
float
double
long
short
signed
unsigned
const
void
enum
sizeof
if
else
do
while
for
switch
break
continue
union
struct
return
typedef
case
volatile
goto
default


Thank  You  …..

Previous Post
Next Post
Related Posts

0 comments:

Popular Posts