in Compiler Design
429 views
1 vote
1 vote
The No. Of token is given expression

Printf("whats up %d",++&&***a);
in Compiler Design
by
429 views

4 Comments

as per me, three *'s as one token ==> total 10 tokens in the given statement
0
0

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
0
i didn't check that link, but as longest prefix matching ( greedy ) it is considered 3 *'s as one token.
0
0

Please log in or register to answer this question.