4 ms·
If you learn C from a text that is worth anything (K&R comes to mind) you learn how to address this so called 'EOF error' from the beginning. If I remember rig
by tsally 18y ago
If you learn C from a text that is worth anything (K&R comes to mind) you learn how to address this so called 'EOF error' from the beginning. If I remember right, K&R does not even introduce the character primitive until after it introduces getchar(). All of the examples use an int.