Multiple choice

Which of the following codes is used for relative position in get pointer and is used to place the file pointer, and read the contents from the beginning of a file?

  1. ios::cur

  2. ios::beg

  3. ios::end

  4. ios::out

  5. ios::in

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This code is used for relative position in get pointer and is used to place the file pointer, and read the contents from the beginning of a file.