C++ MQCs with Explanation ( WORKING WITH FILES)

When reading a file that is connected to the input stream fin of ifstream, we can detect the end-of-file condition using

  1. while (fin) statement
  2. if (fin.eof ( )!= 0) statement
  3. either of them
  4. neither of them



Answer: 
Option c: either of them

Explanation Here

Post a Comment

0 Comments