I cannot check this program at the place where I am now. Could someone just help me with this ?
I just need to know whether each line entered by user is printed on the standard output right after it is entered.
[code]
#include <stdio.h>
int main (void)
{
char input [1000];
while (gets (input))
puts (input);
return 0;
}
[\code]
(I know I shouldnīt use gets())
So letīs say user enters these lines
Will this program work like this:
>first line
first line
>second line
second line
>third line
third line
or more like this...?
>first line
>second line
>third line
first line
second line
third line
Thank you !