12345678910



Question 1: Point out the error, if any in the program.

#include<stdio.h>
int main()
{
int i = 1;
switch(i)
{
printf("This is c program.");
case 1:
printf("Case1");
break;
case 2:
printf("Case2");
break;
}
return 0;
}

1. Error: No default specified
2. Error: Invalid printf statement after switch statement
3. No Error and prints "Case1"
4. None of above