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

What is an operator function? Describe the function of an operator function?

604


Out of fgets() and gets() which function is safe to use and why?

714


What are the stages in the development cycle?

568


Is ca high or low level language?

575


What does the linker do?

582






Explain bubble sorting.

620


Is java made in c++?

573


How would you use qsort() function to sort an array of structures?

707


Explain one-definition rule (odr).

635


Why is the function main() special?

617


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

554


What is the difference between public, private, and protected access?

606


What does catch(…) mean?

604


Is c++ still being used?

553


How much is c++ certification?

574