What is the effect of following piece of code?
char ch;
while ((Ch = getchar()) != '\n')
putchar (' ');
a. It reads and writes exactly one line with a blank after each character
b. It reads one line but ouputs only blanks
c. It reads a line and then outputs one blank
d. It reads and writes one line with all blanks replaced by newlines.