My C code:
int c; c = getchar(); while (c != EOF) { putchar(c); c = getchar(); }
Why does this program react like this on inputting
The standard input/output streams can be buffered which means your input may not be echo'd to the screen until a whitespace character (for example) is encountered.