When reading a file, if the end of the file is reached, the ________ function can be used to check this condition.

  • feof()
  • endoffile()
  • fileend()
  • eofcheck()
The correct option is feof(). This function checks if the end-of-file indicator for a stream has been set, indicating that there are no more characters to read from the file.
Add your answer
Loading...

Leave a comment

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