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

Answer Posted / praveen

printf writes the data to console
sprintf writes the data to an array

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Evaulate: 22%5 a) 2 b) 4 c) 0

845


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

785


C is to C++ as 1 is to a) What the heck b) 2 c) 10

810


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

831


What is abstract keyword in c++?

799






Where must the declaration of a friend function appear?

713


Explain queue. How it can be implemented?

864


Can notepad ++ run c++?

715


What is & in c++ function?

775


What are static and dynamic type checking?

791


What are the benefits of operator overloading?

868


Explain the volatile and mutable keywords.

809


How do I write a c++ program?

778


How do you define/declare constants in c++?

757


Write a c program for binary addition of two 8 bit numbers.

3856