C Programming MCQ

1: Consider following statements: putchar(getchar()); putchar(getchar()); If a b is the input, then output will be
A. An error message
B. this can't be the input
C. a, b
D. Undefined
 

Answer : B

Explanation :
The input is actually a \n b. Since we are reading only two characters, only a and \n will be read and printed.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.