

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> int main() { char num[25]; fgets(num, 24, stdin); ungetc(num[0], stdin); scanf("%s", num); printf("%s n", num); return 0; } |
A. | First character of whatever user types first time and whatever user types second time |
B. | Whatever string user types first time |
C. | Whatever string user types second time |
D. | Compilation Error |
E. | None of these |
Answer» B. Whatever string user types first time | |