switch and jump statement
a multiway conditional statement generalizing the if-else statement.
example
switch (val) {
case 1: ++a_cnt; break;
case 3: +b_cnt; break;
default: ++other_cnt; }
jump statement
- break and continue statements
- two special statements interrupt the normal flow of control
- break causes an exit from the innermost enclosing loop or switch statement.
- continue causes the current iteration of a loop to stop and causes the next iteration of the loop to begin immediately.
- goto and return