What will be the output of the following "C" code fragment? x=0; while (x<100) x+=2; print(x);

What will be the output of the following "C" code fragment?

x=0;
while (x<100)
    x+=2;
print(x);
  1. a) 99
  2. b) 100
  3. c) 101
  4. d) 98

From the NPCBL Executive Trainee (CSE) 2023 – Preliminary exam, question 35 of 39.

More from this paper