The fseek function allows for ________ access of data within a file.
- random
- direct
- sequential
- indexed
The correct option is sequential. The fseek() function, when used with SEEK_SET, SEEK_CUR, or SEEK_END, allows for sequential access to data within a file. It enables you to move the file pointer forward or backward, or directly to the end of the file, facilitating sequential data access.
Loading...
Related Quiz
- You are working on a program that processes user input, and you want to ensure that the input string does not exceed a certain length to prevent buffer overflow. Which string handling function would be appropriate to use?
- What function can be used to find the current position of the file pointer in a file?
- The function ________ in C changes the size of the memory block pointed to by a given pointer.
- What is the effect of not specifying the size of the array when initializing it with a list of values?
- You're working on an application that processes large datasets. Why might you choose to use pointers to arrays instead of traditional arrays?