Name
break
Synopsis
The break
statement jumps immediately to the
statement after the end of a loop or switch
statement. This provides a way to end execution of a loop at any
point in the loop body.
Syntax:
break;
Example:
while (1 { ... if (command == ESC) break; // Exit the loop ... }
Get C Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.