Hello,
I have following program that I got from the C book
The program is in a loop as you can see. But not sure how to enter the EOF character using my keyboard to terminate the prgram.Code:#include <stdio.h> main() { long nc; nc = 0; while (getchar() != EOF) ++nc; printf("%ld \n",nc); }
What is the actual character value of EOF. I know that integer value is -1.