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 :
- Every Statement in switch must be wrapped within any of the case
- I am in switch statement is not under any of the case so it is Neglected by Compiler
- For More Switch Case Rules : Click Here
Switch Case MCQ Select :
