Using the ________ function, the file pointer can be moved to the end of a file.

  • fseek()
  • rewind()
  • ftell()
  • fsetpos()
The correct option is fseek(). This function is used to set the file position indicator to a specific position within the file. When the SEEK_END constant is provided as the reference point, it moves the file pointer to the end of the file, allowing operations like appending data.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *