lovecreatesbea...@gmail.com wrote: [ Subject: Why getchar() doesn't quit if EOF isn't the first char ] #include > int main(void) { int c; > while ((c = getchar()) != EOF){ putchar(c); fflush(stdout); } return 0; } > > /* [a console interact session] > aaa^Zbbb [INPUT surrounding ^Z followed by enter] [a single enter here] aaa [output] > ^Z [here, ^Z ...