What is the Difference between "printf" and "sprintf"?

Answer Posted / ramanji

printf() is used to send the output to the output consoled
device i.e,monitor

and the sprintf() is send the output to the specified file
that will be given in the parameters

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know about C++ 11 standard?

732


Explain virtual class and friend class.

689


How to implement is-a and has-a class relationships?

666


What are the advantages of pointers?

682


What is heap sort in c++?

709






What is a float in c++?

624


How do I run c++?

673


Why do we learn c++?

622


What are the benefits of oop in c++?

694


How is data hiding achieved in c++?

653


Explain the difference between using macro and inline functions?

686


What is c++ similar to?

694


Is c the same as c++?

650


What is static in c++?

690


Explain how to initialize a const data member.

704