+ 2
Please give the difference between printf and sprintf in c language
please upvote if you like
1 Antwort
+ 3
printf outputs to the standard output stream (stdout)
fprintf goes to a file handle (FILE*)
sprintf goes to a buffer you allocated. (char*)