Which function is used to reposition the file pointer?

a) moveg()
b) seekg()
c) changep()
d) go_p()

1 thought on “Which function is used to reposition the file pointer?”

  1. b
    Explanation: seekg() function is used to reposition a file pointer in a file. The function takes the offset and relative position from where we need to shift out pointer.

Leave a Comment