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

Answer Posted / ramanji

printf() is used to send the output to the output consoled
device i.e,monitor

and the sprintf() is send the output to the specified file
that will be given in the parameters

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a function signature with various number of parameters.

772


What is the difference between *p++ and (*p)++ ?

966


What is the use of register keyword with the variables?

727


What is data binding in c++?

683


Explain how functions are classified in C++ ?

979






Which function should be used to free the memory allocated by calloc()?

764


What are c++ variables?

753


What is a storage class? Mention the storage classes in c++.

767


Why do we use the using declaration?

884


What is #include iostream h in c++?

824


State the difference between pre and post increment/decrement operations.

797


What are the important differences between c++ and java?

817


Explain one-definition rule (odr).

845


What is long in c++?

950


Name the operators that cannot be overloaded in C++?

767