O'Reilly logo

C# Primer Plus by Klaus Michelsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Jump Statements break and continue

The following section discusses how the break and continue statements can be used to influence the flow of execution during the execution of a loop statement.

The break Statement

Occasionally programmers want to terminate a loop somewhere inside its loop body rather than at the beginning or at the end of the loop. They can achieve this by using the break statement that was introduced along with the switch statement in the previous chapter.

The break Statement and the Iteration Statements

The break statement can be used to terminate an iteration statement and will, when executed, cause the flow of control to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required