The ________ function is used to move the file pointer to a specified position in a file.
- moveptr()
- fseek()
- setposition()
- positionfile()
The correct option is b) fseek(). This function in C is used to move the file pointer to a specified position in the file. It takes the file pointer, offset, and origin as arguments.
Loading...
Related Quiz
- A ________ allows multiple variables to share the same memory location.
- In C, when an array is passed to a function, is it passed by value or by reference?
- Using a union can lead to efficient memory usage when you need to store different ________ at different times.
- What function is used to open a binary file for both reading and writing in C?
- What happens when realloc is called with a size parameter of zero?