Answers for "function of fwrite in c"

C
0

fwrite c

#include<stdio.h>

int main () {
   FILE *fp;
   char str[] = "This is tutorialspoint.com";

   fp = fopen( "file.txt" , "w" );
   fwrite(str , 1 , sizeof(str) , fp );

   fclose(fp);
  
   return(0);
}
Posted by: Guest on March-26-2022

Code answers related to "C"

Browse Popular Code Answers by Language