How are keywords different from identifiers?

Q1. How are keywords different from identifiers?

Ans. Keywords are the words that convey a special meaning to the language compiler. These are retrieved for special purpose and must not be used as normal identifier names.

Some keywords are- abstract. break, case, double.

Identifiers are fundamental building blocks of a program and are used as the general terminology for the names given to different parts of the program viz. variables, objects, classes, functions, array etc.

The following are some valid identifiers:

Myfile, FILE23, $1_one_$33.

Leave a Reply

Your email address will not be published. Required fields are marked *

54 Views
%d bloggers like this: