The newline character is represented by \"\\n\" in C code. Is there an equivalent for the end-of-file (EOF) character?
\"\\n\"
The value of EOF can't be confused with any real character.
If a= getchar(), then we must declare a big enough to hold any value that getchar() returns. We can't use char since a must be big enough to hold EOF in addition to characters.
a= getchar()
a
getchar()
char