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 a porgram in c++ that reads an integer and print the biggest digit in the number

1990


What is overloading unary operator?

807


Explain the difference between realloc() and free() in c++?

731


How do you clear a buffer in c++?

713


Can java be faster than c++?

857






If you want to share several functions or variables in several files maitaining the consistency how would you share it?

737


What is a manipulative person?

726


What is null pointer and void pointer and what is their use?

803


What are the types of container classes?

791


Explain method of creating object in C++ ?

774


What is setfill c++?

878


Why c++ is the best language?

777


What is polymorphism in c++? Explain with an example?

778


What you know about structures in C++?

788


Can turbo c++ run c program?

809