C-18-Q085mediumsingle_mcq
If break were replaced with continue while keeping if i == 5, the program would print:
If break were replaced with continue while keeping if i == 5, the program would print:
- a0, 1, 2, 3, 4
- b0, 1, 2, 3, 4, 6, 7, 8, 9
- c5 only
- dNothing
ব্যাখ্যা
continue only skips the current iteration rather than ending the loop, so when i == 5 the print is skipped but the loop carries on. The result is every value 0–9 except 5: .