Computer Science, asked by riyadutta206, 2 months ago

write a short note on keyword​

Answers

Answered by heenalsurehali
1

Answer:

Keywords

C programs are constructed from a set of reserved words which provide control and from libraries which perform special functions. The basic instructions are built up using a reserved set of words, such as main, for, if, while, default, double, extern, for, and int, etc., C demands that they are used only for giving commands or making statements. You cannot use default, for example, as the name of a variable. An attempt to do so will result in a compilation error.

Keywords have standard, predefined meanings in C. These keywords can be used only for their intended purpose; they cannot be used as programmer-defined identifiers.  Keywords are an essential part of a language definition. They implement specific features of the language. Every C word is classified as either a keyword or an identifier. A keyword is a sequence of characters that the C compiler readily accepts and recognizes while being used in a program. Note that the keywords are all lowercase. Since uppercase and lowercase characters are not equivalent, it is possible to utilize an uppercase keyword as an identifier.

The keywords are also called ‘Reserved words’.

Keywords are the words whose meaning has already been explained to the C compiler and their meanings cannot be changed.

Keywords serve as basic building blocks for program statements.

Keywords can be used only for their intended purpose.

Keywords cannot be used as user-defined variables.

All keywords must be written in lowercase.

32 keywords available in C.

Similar questions