1,786 views
2 votes
2 votes

What it the number of tokens in the following line?

printf("%d  numbers.", &x);

 

5 Answers

1 votes
1 votes

Correct answer is 8.

The token break-up is as follows : 

printf|(|"%d  numbers."|,| &|x|)|;|

Related questions

1 votes
1 votes
2 answers
2
Lovejeet Singh asked Nov 7, 2018
1,159 views
How will the compiler detect whether "if" is a keyword or an identifier?Please tell me the concept behind this.
1 votes
1 votes
1 answer
4
ankit_thawal asked Feb 1, 2018
717 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?