In this tutorial you will learn about break statement in C++ language .
The format of break statement and a simple example is shown in the figure.
![]() |
||||||||||||||||
|
|
Break statement - C++
In this tutorial you will learn about break statement in C++ language . The format of break statement and a simple example is shown in the figure. Break statement is used with the conditional switch statementand with the do, for, and while loop statements. In a switch statement, break causes the program to execute the next statement after the switch. Without a break statement every statement from the matched case label to the end of the switch, including the default, is executed. Means to Learn When the break statement is encountered inside a loop, the loop is immediately terminated and the program continues to execute the statement that follows the loop. Means to Learn
Post Comment |
RELATED TUTORIALS Need a specific tutorial? Do not hesitate and submit a request! |
||||||||||||||
|
Home | Sitemap |
Terms & Privacy
© ONLINEHOWTO.net 2006 - 2009 |
||||||||||||||||