GATE CSE
First time here? Checkout the FAQ!
x
0 votes
177 views

No of token generated?
 

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

 

asked in Compiler Design by Junior (877 points)  
edited ago by | 177 views

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

3 Answers

+3 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.7k 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 (53 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 ago by (405 points)  


Top Users Apr 2017
  1. akash.dinkar12

    3660 Points

  2. Divya Bharti

    2580 Points

  3. Deepthi_ts

    2040 Points

  4. rude

    1966 Points

  5. Tesla!

    1768 Points

  6. Debashish Deka

    1614 Points

  7. Shubham Sharma 2

    1610 Points

  8. Prashant.

    1492 Points

  9. Arjun

    1472 Points

  10. Arunav Khare

    1464 Points

Monthly Topper: Rs. 500 gift card

22,088 questions
28,063 answers
63,298 comments
24,173 users