C Tokens

C Tokens
Tokens are the smallest individual part of a program
1) Keywords:are the reserved words which has some predefined meaning.The programmer cannot alter the meaning of keywords.
Ex: int,float,char,double,if,else,while,do,for, switch.
2) Identifiers:
Are used to identify or name different entities of the program like variable, function, constants.
Ex: sum,result_of_sum,nima
3) Constants:
are data values which cannot be changed during execution of a program.C supports different categories of constant:
Integer constant
Floating point number
Character constant
String Constant
4) Operators:
Is a symbol which specify some operations to be performed on the operands.
C language supports following categories of operator:
Arithematic Operator
Relational operator
Bitwise Operator
Conditional Operator
Logical Operator
5) String:A string in C is a set of characters terminated by a null character.
6) Special Symbols:C supports variety of symbols as special operator.
Ex: ?: ,.,#,%etc

Posted on by