The function ________ is used to close a file in C.
- fclose()
- close()
- endfile()
- fileclose()
The correct option is a) fclose(). This function in C is used to close the file associated with the specified file pointer.
Loading...
Related Quiz
- The size of a structure in memory is determined by the ________ of its members.
- Pointers can lead to ________ if not managed correctly in a C program.
- What is a potential risk of using the gets() function for reading strings in C?
- In C programming, a function that calls itself and the recursive call is the last operation before it returns is known as ________ recursion.
- An array declared as int arr[10]; allocates memory for ________ integers.