In C, to ensure that there are no errors while writing to a file, you should check the return value of the ________ function.
- fclose
- ferror
- feof
- fflush
To ensure error-free file writing, you should check the return value of the ferror function, making option b) "ferror" the correct choice.
Loading...
Related Quiz
- Which looping construct is best suited when the number of iterations is known beforehand?
- What is the purpose of command line arguments in a C program?
- In C++, what is function overloading?
- In C, what is the main advantage of using bit fields in a structure?
- The preprocessor directive ________ is used to include libraries in a C program.