1.

In nested loops, the continue statement, if present within a nested if structure, will exit the ____________(a) If structure(b) nested if structure(c) entire loop(d) present iterationThis question was posed to me by my school teacher while I was bunking the class.This interesting question is from More about Loops in portion MATLAB Programming of MATLAB

Answer»

Right answer is (b) nested if STRUCTURE

Easiest explanation: If the continue statement is present deep-rooted in a nested if structure, it will only stop the current ITERATION. It won’t exit the current ONGOING LOOP or the EXTERNAL loop.



Discussion

No Comment Found

Related InterviewSolutions