0 votes 0 votes Count the no. Of token and also explain the token count rule? printf("i=%d,&i=%x",i&i); Programming in C programming-in-c + – Harikesh Kumar asked Dec 4, 2017 Harikesh Kumar 310 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes printf ( "i=%d,&i=%x" , i & i ) ; ------ -- ---------------- -- -- -- -- -- -- Total tokens = 9 Keyword is 1 token (printf). Pair of brackets are 2 token. The whole string starting from " and ending with " and everything inside is 1 token. Semicolon, Comma are 1 token each. Variables are 1 token each. Operator(&) is 1 token. For detailed study on what else comprises tokens and how to find the total count you have to study the standard book (Best option) and solve different questions. Here is something to get you started : http://cnuinfotech-cd.blogspot.in/2012/06/tokens-patterns-and-lexemes.html http://www.geeksforgeeks.org/compiler-lexical-analysis/ sumit chakraborty answered Dec 4, 2017 sumit chakraborty comment Share Follow See 1 comment See all 1 1 comment reply Harikesh Kumar commented Dec 4, 2017 reply Follow Share Thanku so much 0 votes 0 votes Please log in or register to add a comment.