MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program?_x000D_ #include_x000D_ int main()_x000D_ {_x000D_ int i=3;_x000D_ switch(i)_x000D_ {_x000D_ case 1:_x000D_ printf("Hello\n");_x000D_ case 2:_x000D_ printf("Hi\n");_x000D_ case 3:_x000D_ continue;_x000D_ default:_x000D_ printf("Bye\n");_x000D_ }_x000D_ return 0;_x000D_ } |
| A. | Error: Misplaced continue |
| B. | Bye |
| C. | No output |
| D. | Hello Hi |
| Answer» B. Bye | |