Right Click to Search

Monday, January 25, 2025

Switch case 2 : Multiple Choice Questions in C Programming


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

Tags / Keywords : | ,

Stumble
Delicious
Technorati
Twitter
Facebook

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

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates