Question Detail

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

  • True
  • False
Similar Questions :

1. Which among is used for positioning relative to the beginning of a stream ?

  • ios::start
  • ios::beg
  • ios::begin
  • ios::beginning

2. eof() is used to get

  • easy code reivew
  • end of file
  • debug report
  • file close

3. Which stream class is to only write on files ?

  • ofstream
  • ifstream
  • fstream
  • iostream

4. offset counted from the current position using ?

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

5. Which is correct syntax ?

  • myfile:open ("example.bin", ios::out);
  • myfile.open ("example.bin", ios::out);
  • myfile::open ("example.bin", ios::out);
  • myfile.open ("example.bin", ios:out);
Read more from - C++ File Handling Questions Answers