2 votes 2 votes What it the number of tokens in the following line? printf("%d numbers.", &x); Compiler Design compiler-design lexical-analysis compiler-tokenization + – Mizuki asked Nov 11, 2018 Mizuki 1.8k views answer comment Share Follow See all 8 Comments See all 8 8 Comments reply Show 5 previous comments Mizuki commented Nov 11, 2018 reply Follow Share @kumar.dilip I thought quotes in the string constant are separate tokens. "|%d number.|" 0 votes 0 votes kumar.dilip commented Nov 11, 2018 reply Follow Share Okk 0 votes 0 votes Shiva Sagar Rao commented Apr 22, 2021 reply Follow Share Almost same question: GATE2000-1.18, ISRO2015-25 0 votes 0 votes Please log in or register to add a comment.
4 votes 4 votes total 8 tokens Ravijha answered Jun 21, 2019 Ravijha comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes Correct answer is 8. The token break-up is as follows : printf|(|"%d numbers."|,| &|x|)|;| muthu kumar answered Nov 11, 2018 muthu kumar comment Share Follow See all 3 Comments See all 3 3 Comments reply Mizuki commented Nov 11, 2018 reply Follow Share Thanks! 0 votes 0 votes Sayan Bose commented Nov 11, 2018 reply Follow Share Is this a joke or what? You copied my comment and put it as your answer 1 votes 1 votes muthu kumar commented Nov 12, 2018 reply Follow Share Yes,It is Copied.. I copied that printf part bcoz there is a problem in my pc. If you want to cancel it no problem.. 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes ans= 8 1 printf 2 ( 3 "%d numbers." 4 , 5 & 6 x 7 ) 8 ; maddy0101 answered Dec 25, 2018 maddy0101 comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes printf ( "%d numbers." , & x ) ; 8 token Himanshu Kumar Gupta answered Sep 12, 2020 Himanshu Kumar Gupta comment Share Follow See all 0 reply Please log in or register to add a comment.