In nested loops, the break statement exits the ____ loop.

In nested loops, the break statement exits the ____ loop.
A. external
B. last started ongoing
C. not available in MATLAB
D. for
 
Answer: b
Explanation: The break statement exits the loop in which it is only called. It doesn’t care about the remaining number of iterations in the loop but it only exits from the inner loop and the control still remains in the outer loop.
 

Tìm kiếm

Back
Top