Continue and break statements

State the use of continue and break statements?

E

Expert

Verified

If we encounter the “continue” statement, it suspends the execution of all the statements following it, and the control is shifted to the top of loop for next iteration. However, break statement, on the other hand results in the control to break out of the loop.

   Related Questions in Simulation in MATLAB

©TutorsGlobe All rights reserved 2022-2023.