4 votes 4 votes int main() { int a,b; a=10; b=15; printf("a=%d,b=%d",a++,b--); } The number of tokens in the above C program is_________. I am getting 30 The answer given is 29 Compiler Design compiler-design lexical-analysis made-easy-test-series + – jatin khachane 1 asked Nov 23, 2018 • edited Nov 15, 2023 by Hira Thakur jatin khachane 1 1.3k views answer comment Share Follow See all 13 Comments See all 13 13 Comments reply SHUBHAM SHASTRI commented Nov 23, 2018 reply Follow Share how is 30 ?? i am getting 29 ...only 0 votes 0 votes Hemanth_13 commented Nov 23, 2018 reply Follow Share I'm getting 30 as well 0 votes 0 votes Shivam Kasat commented Nov 23, 2018 reply Follow Share i am also getting 30 ! 0 votes 0 votes jatin khachane 1 commented Nov 23, 2018 reply Follow Share 1int 2main 3( 4) 5{ 6int 7a 8, 9b 10; 11a 12= 13 10 14; 15b 16= 17 15 18; 19printf 20( 21" " 22, 23a 24++ 25, 26b 27-- 28, 29; 30} Where i am going wrong :( 0 votes 0 votes SHUBHAM SHASTRI commented Nov 23, 2018 reply Follow Share yes 30 is correct ...i missed one 1 votes 1 votes jatin khachane 1 commented Nov 23, 2018 reply Follow Share Means answer given is wrong ..in test series solution 0 votes 0 votes SHUBHAM SHASTRI commented Nov 23, 2018 reply Follow Share yes ..it should be 30 0 votes 0 votes Shaik Masthan commented Nov 23, 2018 reply Follow Share @jatin khachane 1 i) type the questions instead of screenshots ii) add test-series name in the title 2 votes 2 votes jatin khachane 1 commented Nov 23, 2018 reply Follow Share Ya ok no problem..m just thinking that whether i am allowed to discuss Test series questions here...?? 0 votes 0 votes Shaik Masthan commented Nov 23, 2018 reply Follow Share allowed to discuss test-series questions 1 votes 1 votes Subarna Das commented Nov 23, 2018 reply Follow Share @jatin khachane 1 you are allowed to discuss but $\underline{\text{you have to } \color{red}{add}\text{ test-series name in } \color{red}{title}}.$ 2 votes 2 votes jatin khachane 1 commented Nov 23, 2018 reply Follow Share Ok ma'am 0 votes 0 votes prashant dubey commented Apr 8, 2019 reply Follow Share How is 29 because i am getting 30 0 votes 0 votes Please log in or register to add a comment.
5 votes 5 votes total 30 tokens are present Ravijha answered Jun 21, 2019 Ravijha comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 30 should be ans. prashant dubey answered Apr 8, 2019 prashant dubey comment Share Follow See all 0 reply Please log in or register to add a comment.