What's Eof in C?
From Wikipedia, the Free Encyclopedia. in Computing, End-of-File (Eof) Is a Condition in a Computer Operating System Where No More Data Can Be Read from a Data...
From Wikipedia, the free encyclopedia. In computing, end-of-file (EOF) is a condition in a computer operating system where no more data can be read from a data source.
What is EOF () in C?
The End of the File (EOF) indicates the end of input. After we enter the text, if we press ctrl+Z, the text terminates i.e. it indicates the file reached end nothing to read.
Is EOF the same as 0?
5 Answers. EOF is a macro which expands to an integer constant expression with type int and an implementation dependent negative value but is very commonly -1. '\0' is a char with value 0 in C++ and an int with the value 0 in C.