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

What is a static element?

803


Is there finally in c++?

828


What are built-in functions? What is the syntax for the definition?

814


What is std :: flush?

813


Why c++ is called oop?

862


How do you find out if a linked-list has an end?

849


What does I ++ mean in c++?

792


What are libraries in c++?

802


What is srand c++?

828


What is bubble sort c++?

776


Which should be more useful: the protected and public virtuals?

776


What does new return if there is insufficient memory to make your new object?

789


What does iomanip mean in c++?

880


What is a terminating character in c++?

1027


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

794