effect of following code
What is the effect of following piece of code?
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.
e) It won't compile because 'Ch' is undefined, first used in line ...
>>What is the effect of following piece of code?
Why not compile and run it yourself, after fixing the problem highlighted by quzah. You'll learn a lot by trying things yourself first.