Switch case MCQ 7 : No cases in switch case

Switch case 7 : Multiple Choice Questions in C Programming

Problem Statement 7 : No cases in switch

void main()
{
int choice = 2 ;
switch(choice)
{
}
}
Options : Is this program is error free
  1. Yes
  2. No



Why ? Explanation  :
  1. Though never required ,there can exist switch without case
  2. For more details ……

Select Switch Case Question :

Bookmark & Share