How does the continue statement affect the execution of a nested loop structure? 

  • It jumps to the next iteration of the innermost loop. 
  • It jumps to the next iteration of the outermost loop. 
  • It stops the entire program execution. 
  • It restarts all loops from the beginning.
The continue statement causes the current iteration of the loop to terminate, and the control jumps to the next iteration of the innermost loop that contains the continue. It won't affect any outer loops in the nested structure unless it's placed in the outer loop itself.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *