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 do you use the namespace feature?

636


What is meant by iomanip in c++?

598


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

606


What is the difference between the compiler and the preprocessor?

605


Difference between strdup and strcpy?

640






How is new() different from malloc()?

618


What is the use of typedef?

627


Explain virtual class and friend class.

589


What is a driver program?

621


Can I learn c++ as my first language?

595


What is the protected keyword used for?

607


Why is c++ considered difficult?

635


What is auto used for in c++?

558


What is the full form of dos?

556


What are the types of array in c++?

608