...

/

A switch Statement

A switch Statement

Learn about switch statements in C that let us execute code selectively.

We'll cover the following...

A typical switch statement

An if statement with multiple else, if clauses strung together to test for different values (and execute different codes), is common enough that there’s a special construct called the switch ...