Switch case : Multiple Choice Questions in C

Problem Statement 2 : 

void main()
{
int choice = 1 ;
switch(choice)
{
printf("nI am in switch");

case 1 :
printf("nWhat are You Doing in Mumbai");
break;

case 2 :
printf("nUS is Great Country");
break;

case 3 :
printf("nWater turns into Gas");
break;
}
}




Note :
  1. Every Statement in switch must be wrapped within any of the case
  2. I am in switch statement is not under any of the case so it is Neglected by Compiler
  3. For More Switch Case Rules : Click Here

Switch Case MCQ Select :

Bookmark & Share