Tokens

Default Image

A source programme may consist different
type of elements of syntax. These elements could be keywords, variables,
functions, constants etc. These elements are known as tokens. In the
following programme we will identify different type tokens:

#include


void main()


{


            int a=10,b=5,c;

            c=a+b;


            cout<

            }


In the above programme:


  • main is the special identifier, and a,b,c are variables.
  • int is a key word, indicates integer data type.
  • Punctuators: []{}();
  • Operators: +,=,-,/,% etc.

Read Count: 3 times

Comments

No comments yet.

Leave a Comment