Switch statements in C-Language:

Switch statements: It is multi way 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.

Switch (expression)
{
case constant 1:
   {
     block 1
     break;
   }
case constant 2:
  {
block 2
break;
  }
case constant 3:
  {
  block3
  break;
  }
default:
 {
default block;
break;
 }
}

Switch statement
Switch statement