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

Answer Posted / lavanya

printf funtion is to write the output to stdout.
sprintf function is to store romatted input output on a
string buffer

Is This Answer Correct ?    11 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

698


To what does “event-driven” refer?

712


How many namespaces are there in c++?

643


What is type of 'this' pointer? Explain when it is get created?

670


Can c++ do everything c can?

695






State the difference between delete and delete[].

684


Write syntax to define friend functions in C++.

702


Write is a binary search tree? Write an algo and tell complexity?

690


What's the order in which the local objects are destructed?

918


What is long in c++?

837


Why c++ does not have finally?

715


How is modularity introduced in C++?

852


Does a derived class inherit or doesn't inherit?

717


Differentiate between the manipulator and setf( ) function?

704


Name the operators that cannot be overloaded in C++?

688