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
statement that’s provided for such a workflow. This is typically how a switch
statement is used:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy