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 the difference between a definition and a declaration?

570


What is expression parser in c++

1880


how to explain our contribution in the project?

3067


How can you link a c program with a c function?

556


When is dynamic checking necessary?

587






Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

595


How many characters are recognized by ANSI C++?

891


How is objective c different from c++?

784


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

786


Describe the syntax of single inheritance in C++?

637


Which field is used in c++?

625


If I is an integer variable, which is faster ++i or i++?

582


Explain about Garbage Collector?

642


What is runtime polymorphism in c++?

578


In a function declaration, what does extern mean?

632