edited by
4,885 views

2 Answers

Best answer
13 votes
13 votes

Lexical Analyzer is a part of Compiler, before source program is fed to compiler for token creation, the preprocessor expands shorthands, called macros, into source language statements.

They never reach to Lexical analyzer. So there will be 16 tokens.

selected by
3 votes
3 votes


int

main

(

 )  
{  
int

n

=

 2020

 ;  
return

n

%

M

 ;
}

Total tokens = 16

Related questions

5 votes
5 votes
1 answer
1
rahul sharma 5 asked Oct 9, 2017
5,516 views
void main(){i/*nt*/a=10;return;}Number of tokens in above code:?
2 votes
2 votes
2 answers
4
Na462 asked Nov 7, 2018
3,600 views