| 6.12 "C" Language Constructs -- 3 |
break statement
Kernighan p224 (very bottom of page)
A break statement may appear only in an iteration statement
or a switch statement, and terminates execution of the
smallest enclosing such statement; control passes to the statement
following the terminating statement.
switch ( expression ) statement
case labels.
default statement is allowed.
case.
switch( i )
{
case 1: a++; /* falls into case 2 */
case 2: b++; break;
default: c++; /* I was not 1 or 2 */
}
continue statement
Kernighan p224
A continue statement may appear only within
an iteration statement. It causes control to pass to the
loop-continuation portion of the
smallest enclosing such statement.
| 6.12 "C" Language Constructs -- 3 |