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

  • It pauses the loop temporarily.
  • It restarts the loop from the beginning.
  • It skips the current iteration and continues with the next iteration.
  • It terminates the loop immediately.
The continue statement in a loop skips the current iteration and continues with the next iteration. It does not terminate the loop or restart it. This is useful when you want to skip certain iterations based on a condition but continue the loop.
Add your answer
Loading...

Leave a comment

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