1.

In nested loops, the continue statement, if present within an if structure, will exit the ____________(a) If structure(b) current iteration(c) entire loop(d) ErrorThis question was addressed to me in an interview for job.This is a very interesting question from More about Loops in division MATLAB Programming of MATLAB

Answer»

Correct OPTION is (b) CURRENT iteration

Explanation: The continue STATEMENT will only end the current iteration and it will start the NEXT iteration. It won’t exit from the ENTIRE loop.



Discussion

No Comment Found

Related InterviewSolutions