Which statement is used in a loop to terminate it and transfer the execution to the next statement following the loop?

  • break
  • continue
  • exit
  • return
The 'break' statement is used in a loop to terminate it prematurely and transfer the execution to the next statement following the loop. It is often used to exit a loop based on a certain condition.
Add your answer
Loading...

Leave a comment

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