Multiple choice

What would be the output of the following statement in 'C'? int i=0; for(i=0;i<5;) { switch(i) { case 0: printf(n Number is Zero!); break; case 1: printf(n Number is One!); break; case 2: printf(n Number is Two!); break; } i=i+2; }

  1. Number is ZeroNumber is One

  2. Number is OneNumber is Two

  3. Number is ZeroNumber is Two

  4. Number is OneNumber is Zero

  5. Number is TwoNumber is One

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct option as 'i' is incremented to 2 after each iteration.