C++ MQCs with Explanation ( WORKING WITH FILES)

Assuming that the length of the file f1 is 100 bytes, what will be the output of the following code segment? f1.seekg(0, ios::end); f1.seekg(-10, ios::cur); cout << f1.tellg ( );

  1. 0
  2. 100
  3. 90
  4. erroroutput



Answer: 
Option c: 90

Explanation Here

Post a Comment

0 Comments