Which loop is NOT compatible with the break statement in C++? 

  • for loop 
  • do-while loop 
  • while loop 
  • None, all loops support break
All loops in C++ (for, while, and do-while) support the break statement. The break statement is a control flow statement that can be used to exit a loop prematurely when a specific condition is met, irrespective of the loop's primary condition.
Add your answer
Loading...

Leave a comment

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