How do you check if the end of a file has been reached in C++?
A. file.end_of_file()
B. endOfFile(file)
C. file.eof()
D. eof(file)
Answer: Option C
Related Questions on File Handling in C plus plus
Which header file is required for file handling in C++?
A. <iostream>
B. <fstream>
C. <file>
D. <filestream>
Join The Discussion