Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Simple PHP, Development, PHP Programming lessnos

Break statement - C++

Type:
Networking, Programming and Graphics - Tutorials
Level: Beginner Networking, Programming and Graphics - Tutorials 
Networking, Programming and Graphics - Tutorials
Date: 2006-Dec-04
Networking, Programming and Graphics - Tutorials
Visited: 4738 times
Networking, Programming and Graphics - Tutorials
Rating: Networking, Programming and Graphics - Tutorials
Networking, Programming and Graphics - Tutorials
Author: Alex Tutorialized

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++
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

Rate this tutorial:                    
Post Comment

Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: