Which of the following best describes the behavior of the continue statement inside a loop?

  • It exits the loop and resumes execution from the beginning of the loop.
  • It is used to define an exception handling block within the loop.
  • It skips the rest of the current iteration and proceeds to the next iteration of the loop.
  • It terminates the loop entirely.
The continue statement, when encountered, skips the current iteration of a loop and proceeds to the next iteration. It does not exit the loop. This is often used to skip specific elements or conditions within a loop without terminating it.
Add your answer
Loading...

Leave a comment

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