When reading a file in C, which function can be used to check if the end of the file has been reached?

  • endOfFile()
  • feof()
  • fileEOF()
  • file_end()
The correct function is feof(), which stands for "file end of file." It returns a non-zero value if the end of the file has been reached, indicating that there are no more characters to read.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *