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

Difference between a copy constructor and an assignment operator.

787


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

860


Describe the advantages of operator overloading?

804


Is ca high or low level language?

846


Does c++ support multilevel and multiple inheritances?

772


What is fixed in c++?

791


What is an associative container in c++?

789


What is algorithm in c++ programming?

812


Should I learn c++ c?

833


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1067


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2327


Why do we need function?

817


Is the declaration of a class its interface or its implementation?

959


What is a constructor and how is it called?

812


What are disadvantages of pointers?

841