What is the role of the 'continue' statement in a loop?

  • It exits the program.
  • It restarts the loop from the beginning.
  • It skips the current iteration and continues with the next.
  • It terminates the loop.
The 'continue' statement is used in loops to skip the current iteration and move to the next iteration. It does not terminate the loop but helps to skip certain iterations.
Add your answer
Loading...

Leave a comment

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