#define EOF
getchar( ) is usually used to get characters from a file until the “end of file” is reached
The value used to indicate the end of file varies from system to system. It is “system dependent”.
But, regardless of the system we’re using, there is a #define in stdio library for EOF