MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program? #include int main() { int i = 1; switch(i) { printf("Hello\n"); case 1: printf("Hi\n"); break; case 2: printf("\nBye\n"); break; } return 0; } |
| A. | HelloHi |
| B. | HelloBye |
| C. | Hi |
| D. | Bye |
| Answer» D. Bye | |