+ 2

Please give the difference between printf and sprintf in c language

please upvote if you like

5th Nov 2016, 7:11 AM
Saksham Jain
Saksham Jain - avatar
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*)
5th Nov 2016, 7:12 AM
Sandeep Balachandran
Sandeep Balachandran - avatar