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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *