Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: