My C code:
int c; c = getchar(); while (c != EOF) { putchar(c); c = getchar(); }
Why does this program react like this on inputting
Your input is hello and not h e l l o right?
hello
h
e
l
o
So the input you give is buffered until you press enter.