1 votes 1 votes The No. Of token is given expression Printf("whats up %d",++&&***a); amit166 asked Oct 4, 2018 amit166 448 views answer comment Share Follow See all 9 Comments See all 9 9 Comments reply MiNiPanda commented Oct 4, 2018 reply Follow Share 14..? 0 votes 0 votes Shubhanshu commented Oct 4, 2018 reply Follow Share 12. 0 votes 0 votes MiNiPanda commented Oct 4, 2018 reply Follow Share @Shubhanshu ++ should be counted once I did a mistake there..but we need to count && as one token? 0 votes 0 votes Shaik Masthan commented Oct 4, 2018 reply Follow Share && ----> we have operator ===> count as 1 what about consecutive *'s?? we can assume it as double pointer or thriple pointer and so on.... 0 votes 0 votes Shubhanshu commented Oct 4, 2018 reply Follow Share Compiler always use the greedy approach for tokenization which means it tries to include as many symbol as possible in one token. https://gcc.gnu.org/onlinedocs/cpp/Tokenization.html 0 votes 0 votes Sayan Bose commented Oct 4, 2018 reply Follow Share So the three * are considered as separate tokens, right ? 0 votes 0 votes Shaik Masthan commented Oct 4, 2018 reply Follow Share as per me, three *'s as one token ==> total 10 tokens in the given statement 0 votes 0 votes Sayan Bose commented Oct 4, 2018 reply Follow Share Shaik Masthan Can you please tell me the concept behind this ? Is it because of the greedy approach used for tokenization as mention in the link above ? 0 votes 0 votes Shaik Masthan commented Oct 4, 2018 reply Follow Share i didn't check that link, but as longest prefix matching ( greedy ) it is considered 3 *'s as one token. 0 votes 0 votes Please log in or register to add a comment.