Which function is used to close a file that has been opened using fopen?
- fclose
- fopen
- fread
- fwrite
The fclose function is used to close a file that has been opened using fopen. This is important to release system resources and ensure data is properly saved.
Loading...
Related Quiz
- When declaring a pointer in C, which symbol is used to denote that a variable is a pointer?
- What is a potential risk when using the strcpy function in C?
- When reading a text file in C, which function can be used to read data from the file?
- You need to implement a function that modifies multiple variables of different data types. What concept related to pointers would you use?
- What is the lifetime of a static variable in a C program?