Which of the following is used to move the file pointer to start of a file?

a) ios::beg
b) ios::start
c) ios::cur
d) ios::first

1 thought on “Which of the following is used to move the file pointer to start of a file?”

  1. a
    Explanation: ios::beg is used to reposition the file pointer to the beginning of the file. It is whenever you want to reposition the pointer at the beginning from any point to the start of the file.

Leave a Comment