Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Break and continue statements

In this video, Dr John Baugh demonstrates the use of break and continue statements in C++.

In this video, you’ll explore working with break and continue statements.

You will learn more about:

  • using break statements to cause an early exit from a repetition control statement
  • using continue statements to cause an iteration of a repetition control statement to be skipped.

Access the link in the ‘See also’ section to find and retrieve the relevant files and follow along.

This article is from the free online

How to Program in C++

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now