download Mastguru Android App

Question Detail

eof() is used to get

  • easy code reivew
  • end of file
  • debug report
  • file close
Similar Questions :

1. Which functions allow to change the location of the get and put positions ?

  • sg() and sp()
  • sekg() and sekp()
  • gog() and gop()
  • seekg() and seekp()

2. offset counted from the current position using ?

  • ios::curr
  • ios::cr
  • ios::cur
  • ios::current

3. Which stream class is to only read from files ?

  • ofstream
  • ifstream
  • fstream
  • iostream

4. Calling the stream's member function sync() causes an immediate synchronization.

  • True
  • False

5. How to find the position at end of fileObject ?

  • fileObject.seekg( 0, ios::end );
  • fileObject.seekg( 0, ios::end );
  • fileObject.seekg( 0, ios::end );
  • fileObject.seekg( 0, ios::end );
Read more from - C++ File Handling Questions Answers
Mastguru Youtube Channel

Videos @mastguru

Get Free Current Affairs and Govt Jobs Alerts in your mailbox

To Appreciate Our Effort, Please Like Us