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

By using c++ with an example describe linked list?

609


Write about all the implicit member functions of a class?

602


What's the hardest coding language?

581


How the delete operator differs from the delete[]operator?

649


You run a shell on unix system. How would you tell which shell are you running?

666






Which software is best for coding?

578


What is c strings syntax?

612


Which is the best c++ compiler?

599


Write about the access privileges in c++ and also mention about its default access level?

623


What is the role of copy constructor in copying of thrown objects?

604


what is COPY CONSTRUCTOR and what is it used for?

628


When must you use a pointer rather than a reference?

608


Why do we need c++?

599


Which one is a preferred language C or C++? Why?

622


What character terminates all character array strings a) b) . c) END

682