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

What is a class template in c++?

828


Difference between pointer to constant vs. Pointer constant

850


Explain rtti.

834


How long it will take to learn c++?

832


What character terminates all character array strings a) b) . c) END

1012


What is the benefit of learning c++?

753


Can we use pointers in c++?

830


Explain storage qualifiers in c++.

840


When is dynamic checking necessary?

824


Differentiate between an array and a list?

966


What is Destructor in C++?

974


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

825


What is a responder chain?

823


How do c++ struct differs from the c++ class?

880


What is polymorphism and its type in c++?

807