C Programming MCQ

1:

Consider the statements
putchar ( getchar ( ));
putchar(getchar( ));
if
a
b
is the input, the output will be

A.

an error message

B.

this can't be the input

C.

ab

D.

a   b

 

Answer : B

Explanation :

The input is actually a \ n b. Since we are reading only two charactcrs, only a and \ 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.