What is a nested loop?


Please explain why do you think this question should be reported?

Report Cancel

A nested loop is a loop within a loop, an inner loop within the body of an outer one. Then the second pass of the outer loop triggers the inner loop again. This repeats until the outer loop finishes. Of course, a break within either the inner or outer loop would interrupt this process.

Please follow and like us:

About the Author