Switch case 6 : Multiple Choice Questions in C Programming

January 26, 2025 1 Comment » Hits : 185





Switch case 6 : Multiple Choice Questions in C Programming

Problem Statement 6 :
void main(){ int choice = 2 ; switch(choice); {
  case 1 :        printf("nAllas");        break;
  case 2 :        printf("nBabo");        break;
  case 3 :        printf("nHurray");        break; } printf(" Finally I am in main ");}
Options : Guess the Output
  1. Finally I am in main
  2. Babo Finally I am in main
  3. Hurray Finally I am in main
  4. Allas Finally I am in main



Why ? Explanation  :
  1. Semicolon at the end of switch will terminate switch block without entering in it
  2. For more details ……

Select Switch Case Question :


Bookmark & Share

Incoming search terms:

  • Earnest Hallan

    Hi there! This post couldn’t be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thank you for sharing!