What are Keywords & Identifiers?

Every C word is classified as either a keyword (or) identifier.

Keyword :

There are certain reserved words called keywords. All key words have fixed meanings & these meanings can not be changed.

Keywords serve as basic building blocks for program st. there are 32 keywords in ANSI ‘C’. all keywords must be written in lower case letters. They are not used as var& fun names.

Ex. Break, static, int,switch…..

Identifiers:

The identifier is a name given to the program ele_ such as names of vars functions & arrays.

These are user-defined names & consist of a sequence of letters & digits, with a letter as a first character.

Both upper case & lower case letters are permitted, although lower case letters are commonly used.

The underscore characters is also permitted in identifies. It is usually used as a line between 2 words in long identifies.

 Rules for identifiers:

1.1st character must be an alphabet (or underscore).

2. must consist of only letters, digits or.

3. only first 31 characters are significant.

4. cannot use a keyword.

5. must not contain white space.

Related

Write about String Handling Functions in C language?

The C library supports a large number of strings handling functions that can be used to carry out many of the string manipulations. The most commonly used string functions: 1. strcat...

Write about Constant Pointers in C

Constant Pointers A constant pointer is a pointer that cannot change the address its holding. In other words, we can say that once a constant pointer points to a variable then it cannot point to an...

What is an Array? Explain about One-Dimensional Arrays?

The fundamental data types can store only one value at any given time. To process large amounts of data, c supports a derived data type known as Array. An array can be use...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item