Sunday, 27 March 2016

Tokens in C language

Definition 1: The Tokens are the basic building blocks any programming language. They are the smallest unit of the programming language that cannot be further broken.
There are 6 types of tokens in the C language.
1.       Identifiers
2.       Keywords
3.       Constants
4.       Variables
5.       Operators
6.   Punctuations


Example of the tokens in the C program
void main()
{
printf(“welcome”);
}

In the above example
  •  void is keyword
  •  main is the function name  an identifier.
  • printf() is again a function name 

No comments:

Post a Comment