1.

What will be the output of the program? #include int main() { int i=4; switch(i) { default: printf("This is default\n"); case 1: printf("This is case 1\n"); break; case 2: printf("This is case 2\n"); break; case 3: printf("This is case 3\n"); } return 0; }

A. This is default This is case 1
B. This is case 3 This is default
C. This is case 1 This is case 3
D. This is default
Answer» B. This is case 3 This is default


Discussion

No Comment Found