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

What is the use of c++ programming language in real life?

777


What is the use of endl in c++?

788


which of the following is not an secondary constant a) array b) real c) union

1534


Why c++ is the best language?

798


Why should you learn c++?

799


What is the difference between set and map in c++?

882


When must you use a pointer rather than a reference?

802


What is recursion?

1229


give me an example for testing a program showing the test path .show how the test is important and complex.

2667


How the delete operator differs from the delete[]operator?

849


Define a pdb file.

841


What do you mean by ‘void’ return type?

836


Explain virtual class and friend class.

808


Define the process of handling in case of destructor failure?

784


Can malloc be used in c++?

804