C-18-Q084mediumsingle_mcq
The break statement in this program causes the loop to exit when:
The break statement in this program causes the loop to exit when:
- a
iequals 0 - b
iequals 5 - c
iequals 10 - dThe loop is empty
ব্যাখ্যা
The condition if i == 5 triggers the break, terminating the loop exactly when the counter i reaches the value 5. At that point control leaves the loop immediately.