What does the fseek function do in a C program?

  • Sets the file position indicator to the beginning
  • Moves the file position indicator to the end
  • Positions the file pointer to a specified location
  • Closes the file
The correct option is c. Positions the file pointer to a specified location. The fseek() function in C is used to set the file position indicator to a specific location within the file, allowing random access and manipulation of file contents.
Add your answer
Loading...

Leave a comment

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