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

When should you use global variables?

619


What is the fastest c++ compiler?

576


What is double in c++?

553


What is a sequence in c++?

568


Explain how a pointer to function can be declared in C++?

572






Can we use struct in c++?

580


Explain rethrowing exceptions with an example?

598


Mention the ways in which parameterized can be invoked.

532


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2240


What is a rooted hierarchy?

671


What does ios :: app do in c++?

546


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

562


Can comments be nested?

617


Are strings mutable in c++?

686


Difference between overloaded functions and overridden functions

568