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

No of token generated?
 

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

 

asked in Compiler Design by Junior (937 points)  
edited by | 330 views

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

3 Answers

+6 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 (11.1k 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 (75 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 (3.1k points)  


Top Users Sep 2017
  1. Habibkhan

    8796 Points

  2. rishu_darkshadow

    3572 Points

  3. Warrior

    2914 Points

  4. Arjun

    2840 Points

  5. A_i_$_h

    2550 Points

  6. manu00x

    2268 Points

  7. nikunj

    1990 Points

  8. Bikram

    1874 Points

  9. makhdoom ghaya

    1820 Points

  10. SiddharthMahapatra

    1718 Points


26,346 questions
33,928 answers
80,524 comments
31,231 users