When reading a file that is connected to the input stream fin of ifstream, we can detect the end-of-file condition using
- while (fin) statement
- if (fin.eof ( )!= 0) statement
- either of them
- neither of them
Answer:
Option c: either of them
Explanation Here
0 Comments