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

Discussion on error handling of C++ .

653


What is c++ map?

576


What are smart pointers?

674


What are the 2 main types of data structures?

592


What is the difference between an external iterator and an internal iterator?

614






Are strings mutable in c++?

700


What is the protected keyword used for?

621


Define a pdb file.

643


What is meaning of in c++?

678


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

608


What is class invariant in c++?

753


How much do c++ programmers make?

570


What is the best book for c++ beginners?

582


Explain how to initialize a const member data.

604


What is a hash function c++?

558