[go: up one dir, main page]

0% found this document useful (0 votes)
12 views1 page

Keywords and Identifiers

Uploaded by

pavithradev2414
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

Keywords and Identifiers

Uploaded by

pavithradev2414
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Keywords
 All keywords have fixed meanings and these meanings cannot be
changed.
 Keywords serve as basic building blocks for program statements.
 All keywords must be written in lower case.
 Since keywords are referred names for a compiler, they can’t be used
as variable names.
 C language supports 32 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

2. Identifiers
 Identifiers refers to the names of variables, functions, and arrays.
 These are user-defined names and consist of a sequence of letters and
digits, with a letter as a first character.
 Both upper case and lowercase letters are permitted.
 The underscore character is also permitted in identifiers.

Rules for Naming Identifiers


 First character must be an alphabet (or underscore).
 Must consist of only letters, digits or underscore.
 Only first 31 characters are significant.
 Cannot use a keyword.
 Must not contain white space.

You might also like