What is the output? int i = 0;
What is the output?
int i = 0;
while (i < 5) {
i++;
if (i == 3) continue;
printf("%d", i);
}
Show answerHide answer
Correct answer: (A) 1245
Explanation
i becomes 1..5; 3 is skipped by continue.
Correct answer: (A) 1245
Explanation
i becomes 1..5; 3 is skipped by continue.
This is question 128 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.