Q. What will be the output of this code?
Code:int i = 0;
while (i++ < 3)
printf("%d ", i);
β
Correct Answer: (B)
1 2 3
Explanation: i is incremented after comparison, so loop prints 1 2 3.