I'm sure you guys have had this question before... but how do you reach EOF in a statement such as...
while (getchar() != EOF)
do something;
I'm working on the exercises in K&R that want to Verify the expression getchar() != EOF is 0 or 1, and how to write a program to print the value of EOF. All the other books I've read started by teaching printf/scanf so this is a little different.