Q13: Define keywords, identifiers, constants and give examples of each. OR Define keywords and identifier.

 

A13: Keywords:

 

Keywords are the predefine and preserved words in C and each of which is associated with specific feature and meaning to the compiler. There are 32 keywords in C language.

 

e.g. int, if, main, etc.

 

Identifiers:

Each program element in c programming is known as an identifier. These are used for naming of variables, functions, arrays, etc.

 

e.g. (int primeNumber, float _avg).

 

 

Constants:

Constants means fixed value, the value of the constant cannot change during the execution of the program. There are mainly two types of constant numeric constant, character constant.

 

e.g. const float PI = 3.14, #define GST 12.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.