MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int num; scanf("%d", &num); ungetc(num, stdin); scanf("%d", &num); printf("%d n", num); return 0; } |
| A. | Whatever is typed by the user first time |
| B. | Undefined behaviour |
| C. | Compilation Error |
| D. | Whatever is typed by the user second time |
| E. | None of these |
| Answer» C. Compilation Error | |