Break & Continue

This lesson will introduce you to the break and continue keywords and their usage.

We'll cover the following

Break

There is a special statement in C called break that allows you to exit from a loop. It overrides your loop condition at the top or bottom and “breaks” the loop when you want. As we saw in switch statements, we also use break to exit from each case.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy