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*/ } }
There $>=$ $(or)$ $\geq$ are only one token(because this is a operator in C language).
@Lakshman Patel RJIT Is *P count to one token or two? My doubt is because it is a pointer variable..can you please tell about same for 'A' it is counted one not three.
64.3k questions
77.9k answers
244k comments
80.0k users