diff --git a/04-file-copying.c b/04-file-copying.c index a5e7e92..7282464 100644 --- a/04-file-copying.c +++ b/04-file-copying.c @@ -1,10 +1,12 @@ #include -/* copy input to output; 2nd version */ +/* Exercise 1-6 and 1-7 */ int main() { int c; - while ((c = getchar()) != EOF) - putchar(c); + printf("EOF = %d\n", EOF); + + while (c = getchar() != EOF) + printf("c = %d\n", c); }