switch case
is a branching statement used to perform action based on available choices, instead of making decisions based on conditions. Using switch case
you can write more clean and optimal code than if else statement.
switch case
only works with integer, character and enumeration constants.
In this exercises we will focus on the use of switch case
statement. We will learn where to implement switch case
statement other than if else
statement.