Pages

Friday, 19 February 2016

Keywords in C

Keywords

In C language, keyword is a word/unit that made by combination of alphabet and reserved by compiler. its mean programmer can't use these word as variable name and function name. these Keyword used by programmer in program for perform specific task and every Keywords have special meaning in C language.

Like

Here "int" is Keyword that use in program to declare a variable and its type.

Example: int num1;

Now what is meaning of above line?

As we said "int" is keyword that used to declare variable and its type. In above example there is a word num1 that is declared as a variable and int is written before num1 tell to compiler that type of num1 variable is integer.

Programmer should remember this that we can not use "int" as variable's name and function's name.

There are 32 keyword in C language that are given below. Each Keywords have special meaning and special use for certain area of program.

autodoubleintstruct
breakelselongswitch
caseenumregistertypedef
charexternreturnunion
constfloatshortunsigned
continueforsignedvoid
defaultgotosizeofvolatile
doifstaticwhile

Keywords serve as basic building blocks for program statements. All these keyword are explained in next related chapter.

No comments:
Write comments

Popular Posts

Recommended Posts ×