Vidyalelo
C++ Programming · Q23

File Handling in C++

Programming · C++ Programming · question 23

Q23

In C++, how do you check if a file has reached the end while reading?

A.
file.eof()
Answer
B.
eof(file)
C.
file.end_of_file()
D.
endOfFile(file)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board