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

Answer Posted / ramanji

printf() is used to send the output to the output consoled
device i.e,monitor

and the sprintf() is send the output to the specified file
that will be given in the parameters

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define whitespace in C++.

760


What is the difference between an enumeration and a set of pre-processor # defines?

841


Is c++ free?

587


Can c++ be faster than c?

605


What is a type library?

691






Explain what are the sizes and ranges of the basic c++ data types?

650


what is a class? Explain with an example.

626


What is object file? How can you access object file?

603


What does the nocreate and noreplace flag ensure when they are used for opening a file?

685


What is the difference between containment and delegation?

708


Are strings immutable in c++?

664


Can a new be used in place of old mallocq? If yes, why?

641


What are c++ files?

584


When does the c++ compiler create temporary variables?

580


What are disadvantages of pointers?

570