Which keyword allows the control to exit out of the loop even if the loop condition remains true?

  • break
  • continue
  • exit
  • return
The "break" keyword is used to exit out of a loop, even if the loop condition remains true. It's commonly used when a specific condition within the loop is met, and you want to prematurely exit the loop's execution.
Add your answer
Loading...

Leave a comment

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