1) it should be int main()
2) you should initialize count
before you use it.
printf("%d characters /n",count);
maybe you meant
printf("%d characters \n",count);
Anyway, the program should work.
Originally Posted by batman4
where n how it gets eof
EOF is a special value that indicates that the end of the file has been reached. If the input is read from the terminal, you can indicate the end of input by pressing Ctrl+D