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

What is malloc in c++?

718


Explain what are single and multiple inheritances in c++?

724


Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL

537


What are register variables?

815


What are associate containers?

794






Which compiler does turbo c++ use?

790


Can create new c++ operators?

735


How many types of modularization are there in c++?

757


Out of fgets() and gets() which function is safe to use and why?

914


Why is c++ still used?

779


What does new do in c++?

807


What is stoi in c++?

896


What are structures and unions?

761


Is c++ the hardest language?

723


What is vector processing?

888