Computer Science EngineeringHard

How many tokens are there in the C statement: int a = b + 2;

  1. A. 5
  2. B. 6
  3. C. 8
  4. D. 7

Correct answer: D. 7

The tokens are int, a, =, b, +, 2 and ;, which is 7.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic