3 votes 3 votes What is the number of tokens in the below C code? int foo(int i, int j){ return printf(" I do it correctly", i > j); } Programming in C go-programming-1 programming compiler-tokenization numerical-answers + – Arjun asked Oct 18, 2016 Arjun 940 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 10 votes 10 votes 1. int 2. foo 3. ( 4. int 5. i 6. , 7. int 8. j 9. ) 10. { 11. return 12. printf 13. ( 14. " I do it correctly" 15. , 16. i 17. > 18. j 19. ) 20. ; 21. } Digvijay Pandey answered Oct 20, 2016 • selected Oct 20, 2016 by Arjun Digvijay Pandey comment Share Follow See all 2 Comments See all 2 2 Comments reply anonymous commented Oct 20, 2016 reply Follow Share is there any difference between tokens and lexemes ? 0 votes 0 votes Pranav Kant Gaur commented Jan 23, 2017 reply Follow Share A lexeme is an instance of a token: http://stackoverflow.com/questions/14954721/what-is-the-difference-between-token-and-lexeme 0 votes 0 votes Please log in or register to add a comment.