In C, the ________ function is used to write a string to a file.

  • write()
  • fputstring()
  • fwrite()
  • fputs()
The correct option is fputs(). This function is used to write a string to a file in C, providing a convenient way to output a sequence of characters to the specified file.
Add your answer
Loading...

Leave a comment

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