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.
Loading...
Related Quiz
- When defining a structure in C, which keyword is used?
- The function ________ is used in C to allocate memory for an array of specified size dynamically.
- What is the main difference between function declaration and function definition in C?
- Which function is used to close a file that has been opened for reading or writing?
- When a string is declared as a character array, the string must be terminated with a ________.