Which function is used to close a file that has been opened for reading or writing?
- closefile()
- endfile()
- fclose()
- stopfile()
In C, the fclose() function is used to close a file that has been opened for reading or writing. It is essential to close files to release system resources and ensure that data is properly saved.
Loading...
Related Quiz
- Using a union can lead to efficient memory usage when you need to store different ________ at different times.
- What is the term used to describe the number of indices needed to select an element in a multidimensional array?
- A ________ pointer is a pointer that still points to a memory location that has been deallocated.
- What is the significance of the return type in a function declaration in C?
- How does C handle array indices that are out of bounds?