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

Answer Posted / namitha

printf is used to write the data in its format.
sprintf is used to write formatted data to string.

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe linked list using C++ with an example.

645


What is c++ prototype?

580


Explain one-definition rule (odr).

642


What is guard code in c++?

633


What are arrays c++?

603






Is c++ faster than c?

592


What is abstract keyword in c++?

591


Can you overload the operator+ for short integers?

594


Can we use clrscr in c++?

530


Define macro.

585


What is the type of this pointer in c++?

629


How to defines the function in c++?

610


What is difference between class and function?

584


Why is swift so fast?

618


What is a stack c++?

567