The switch statement is used to pickup or execute a particular group of statements from several available group of statements. It allows us to make a decision from the number of choices.
It is a multiway decision statement, it tests the value of given variable or expression against a list of case values and when a match is found, a block of statements associated with that case is executed.
Run Example >
printf("case is 1");
printf("case is 2");