Switch Case
A switch case is uncomplicated solution/alternate of
complicated nested if-else. It is useful when there is a need check to arise
multiple possibility on single variable like print day of the week name based
on the given day number. Best for long if statements that compare a variable to
several "integral" values ("integral" values are simply
values that can be expressed as an integer, such as the value of a char).
Above figure is showing syntax of switch case. In syntax
break and default are in bracket, which means they are optional. You can use
more than one case without using break. If break is omitted, then all the ca