1.

In nested loops, the continue statement exits the ____(a) current iteration(b) loop(c) inner(d) outerThis question was addressed to me in a national level competition.Enquiry is from More about Loops in chapter MATLAB Programming of MATLAB

Answer»

Right option is (a) CURRENT iteration

The explanation is: The continue statement stops the current iteration and restarts a NEW iteration of the same loop if the condition is not matched. It does not EXIT from the outer or the INNER loop.



Discussion

No Comment Found

Related InterviewSolutions