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

Answer Posted / nelson

The only difference between sprintf() and printf() is that
sprintf() writes data into a character array, while printf
() writes data to standard output device.

Is This Answer Correct ?    118 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why ctype h is used in c++?

619


What is the best c++ book for beginners?

685


Which of the following is evaluated first: a) && b) || c) !

1938


Differentiate between the message and method in c++?

688


what is the difference between overloading & overriding? give example.

670






Differentiate between a constructor and a destructor in c++.

653


What is flush programming?

663


Briefly describe a B+ tree. What is bulk loading in it?

881


Explain the pure virtual functions?

726


What is the use of namespace std in C++?

709


Distinguish between a # include and #define.

754


What is a terminating character in c++?

876


What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00

719


What is pointer -to-members in C++? Give their syntax?

688


What are multiple inheritances (virtual inheritance)?

677