The function ________ can be used to determine the size of a file in C.
- size()
- filesize()
- file_size()
- fsize()
The correct option is fsize(). The fsize() function is commonly used in C to determine the size of a file by positioning the file pointer at the end and then retrieving the position.
Loading...
Related Quiz
- In C, ______ is the standard error output stream.
- The ________ loop guarantees at least one execution of the loop body, even if the condition is false from the start.
- Which statement is true regarding the difference between inline functions and macros in C?
- An array name in C essentially acts as a ________ to the first element of the array.
- When using pointers in a C program, what does the 'dereferencing' operation do?