When writing data to a text file, which function is used to ensure that the data is written correctly?

  • fprintf
  • fputc
  • fputs
  • fwrite
The fprintf function is used to write formatted data to a text file in C. It allows you to specify the format and data to be written, ensuring that the data is written correctly with appropriate formatting.
Add your answer
Loading...

Leave a comment

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