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 :

0 Comments:
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email