In C, to close a file opened by fopen, the function ________ is used.
- close
- fclose
- fflush
- remove
In C, the fclose function is used to close a file that was opened with fopen. It's essential to free resources and ensure data is written.
Loading...
Related Quiz
- What is the primary purpose of using pointers in a C function?
- A ________ allows multiple variables to share the same memory location.
- Which operator is used to check if two values are equal?
- What is the result of comparing two strings using the '==' operator in C?
- What is the difference between stderr and stdout in the context of buffering?