• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
June 30, 2022 |4.5K Views
Loops in C++ - Part 2 (Exit Controlled Loop)
  Share  1 Like
Description
Discussion

Exit a Loop in C++: If the condition of an iteration statement (for, while, or do-while statement) is omitted, that loop will not terminate unless the user explicitly exits it by a break, continue, goto, or some less obvious way such as a call of exit() in C++.


Break: This statement is a loop control statement used to terminate the loop. Below is the C++ program to illustrate the use of the break statement:

Loops in C++ - Part 2 (Exit Controlled Loop)  : https://www.geeksforgeeks.org/exit-a-loop-in-c/

Read More