retagged by
603 views

1 Answer

2 votes
2 votes

What is a token ?

tokens are building blocks of a program.

consider the snippet

printf("i=%d, &i=%x", i, &i);

here the tokens are :

  1. printf 
  2. (
  3. "i=%d, &i=%x"
  4. ,
  5. i
  6. ,
  7. &
  8. i
  9. )
  10. ;

How to use it ?
 // I didn't get what do you mean by that


 

Related questions

1 votes
1 votes
1 answer
1
ankit_thawal asked Feb 1, 2018
774 views
1. macros are not considered as tokens in tokenizing.2.#include considered as single token2.stdio.h considered as single token. Are the above statements true?
1 votes
1 votes
1 answer
2
2 votes
2 votes
2 answers
3
Rhythm asked Jun 5, 2019
4,185 views
which one of the following string can definitely said to be a token without looking at the next input:+(++,+=)return(return a)*(*=)=(==)++ , ( ) ‘ ; option e is: plu...