retagged by
3,089 views
1 votes
1 votes

Find the number of tokens in the following C code$:$

main()
{
   int x = 10 , *P ;
   int y = x ++ ;
   char * q ; 
   P = & x ; q = 'A' ;
   if(*P>=10)
   {
     *P = x + 100;  
   }
   else
  {
    printf("%d" , x);
     /*comment*/ 
  }

}
retagged by

2 Answers

Best answer
2 votes
2 votes

There $>=$   $(or)$   $\geq$ are only one token(because this is a operator in C language).

selected by
Answer:

Related questions

2 votes
2 votes
4 answers
3