When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

Advertisement

  • It breaks from only the outer loop.
  • It breaks from all loops.
  • It breaks from only the inner loop.
  • It breaks from the outer loop after the second iteration.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend