Question: What will be output when you will execute following c code?#include<stdio.h>
void main(){
int movie=1;
switch(movie<<2+movie){
default:printf("3 Idiots");
case 4: printf(" Ghajini");
case 5: printf(" Krrish");
case 8: printf(" Race");
}
}
Choose all that apply:
A
B
C
D
E
3 Idiots Ghajini Krrish Race
B
Race
C
Krrish
D
Ghajini Krrish Race
E
Compilation error
Note: We can write case statement in any order including the default case. That default case may be first case, last case or in between the any case in the switch case statement.