What is the effect of the continue statement inside a for loop? 

  • It pauses the loop for a second 
  • It terminates the loop 
  • It jumps to the next iteration 
  • It reruns the current iteration
Inside a for loop, the continue statement causes the loop to skip the rest of its body and jump immediately to the next iteration. This is particularly useful when certain conditions within the loop need to be avoided for specific iterations.
Add your answer
Loading...

Leave a comment

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