What it the number of tokens in the following line?
printf("%d numbers.", &x);
Almost same question: GATE2000-1.18, ISRO2015-25
total 8 tokens
Correct answer is 8.
The token break-up is as follows :
printf|(|"%d numbers."|,| &|x|)|;|
ans= 8 1 printf 2 ( 3 "%d numbers." 4 , 5 & 6 x 7 )
8 ;
printf ( "%d numbers." , & x ) ;
8 token
64.3k questions
77.9k answers
243k comments
79.7k users