Q223
What will be the output of the following C code? #include int main() char n[20]; fgets(n, 19, stdin); ungetc(n[0], stdin); scanf("%s", n); printf("%s ", n); return 0;
A.
Compile time error
B.
Whatever string user types second time
C.
Whatever string user types first time
D.
First character of whatever user types first time and whatever user types second time
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board