C-18-Q078mediumsingle_mcq
Inside a nested loop, a break placed in the inner loop will exit:
Inside a nested loop, a break placed in the inner loop will exit:
- aBoth inner and outer loops
- bOnly the inner loop
- cOnly the outer loop
- dThe entire program
ব্যাখ্যা
A break only affects the loop that directly contains it, so an inner-loop break ends just the inner loop while the outer loop continues.