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

Leave a comment

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