In C++, which function can be used to test whether the end of a file (EOF) has been reached? 

  • checkEOF() 
  • testEnd() 
  • eof() 
  • isTerminated()
The eof() function is used to test if the end-of-file (EOF) has been reached on a file stream in C++. It returns true if the EOF flag for the stream is set. The other options are not standard functions for this purpose in C++.
Add your answer
Loading...

Leave a comment

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