I am learning C with "The C programming Language"
book and in one of the examples i have this code:
#include <stdio.h>
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%1d\n", nc);
}
But this program never reach EOF and i don't know why