Point out the error, if any in the following program ( on GCC compi

Loading

โœช Choose the correct option.

Point out the error, if any in the following program ( on GCC compiler).

#include  
int main() {
int i = 1;
switch(i) {
case 1:
printf("Case1");
break;
case 1*2+4:
printf("Case2");
break;
}
return 0;
}

A. Error: in case 1*2+4 statement
B. No Error
C. Error: No default specified
D. Error: in switch statement

Leave a Comment