I\'m reading the book \"The C Programming Language\" and there is an exercise that asked to verify that the expression getchar() != EOF is returning 1 or 0. Now
getchar() != EOF
make it c!=EOF instead. Because you want to print the result of the expression and not the character.