Understand Switch case in C

The switch statement compares the value of an expression or variable against a list of case values and when a match is found the block of statements associated with that case is executed.

This is a companion discussion topic for the original entry at http://iq.opengenus.org/switch-case-in-c/