Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Should I use sprintf + fwrite, or should I use fprintf ?

OpenStudy (farmdawgnation):

I would go with fprintf. Why use two calls when one will do?

OpenStudy (anonymous):

In comparison ,fwrite is faster than all printf functions , i guess it depends on the requirement if you want the return value of sprintf then use former one or else i would go for later one.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!