What does mean EOF has a value of -1?
I cant understand this program especially the if statement even reading (related programs) from several books-
Code:#include <stdio.h> main() { int c; c = getchar(); read a character while (c != EOF) { while (charater is not end-of-file indicator) putchar(c); output the character just read c = getchar(); read a character } }