GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
265 views

No of token generated?
 

int main()
{
    int ***p;
    printf("%d",***p);
}

 

asked in Compiler Design by Junior (927 points)  
edited by | 265 views

Match the following:
image:CD Topic Test - 1/Q8.png

3 Answers

+5 votes
Best answer

No of tokens=22 



* is  one token but not *** is one token.

But in case of ++ it is treated as one token not two because this is an operator in programming languages.but *** is not an operatotr

answered by Veteran (10.9k points)  
selected by
0 votes
Total no of tokens=22.

Expalanation : 1) int  2)main

                       3) (    

                       4)   )

                       5) {

                        6) int    7) *     8)*   9)  *  10 ) p 11)  ;

                        12)  printf 13)  (    14)      "%d"

                        15)   ,   16)*   17)  * 18)  *   19 ) p    20)  )   21)  

                         22)  }
answered by (73 points)  
0 votes
ans is 22 as *** is count as three because it is not any prdefine operator s increment decrement or comparision operator
it is use sapartely
answered by Loyal (2.6k points)  


Top Users Jul 2017
  1. Bikram

    4062 Points

  2. manu00x

    2464 Points

  3. Debashish Deka

    1850 Points

  4. joshi_nitish

    1658 Points

  5. Arjun

    1294 Points

  6. Hemant Parihar

    1184 Points

  7. Arnab Bhadra

    1112 Points

  8. Shubhanshu

    1054 Points

  9. Ahwan

    900 Points

  10. rahul sharma 5

    706 Points


24,023 questions
30,966 answers
70,346 comments
29,342 users