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

Explain the difference between using macro and inline functions?

839


Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h

888


What is a tuple c++?

768


What do you mean by storage classes?

1174


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3619


How do you save a c++ program?

800


What are structures and unions?

805


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

877


Ask to write virtual base class code?

2494


Explain one-definition rule (odr).

886


What are the characteristics of friend functions?

784


Which should be more useful: the protected and public virtuals?

795


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1358


What's the hardest coding language?

793


How long it will take to learn c++?

821