What is the Difference between "printf" and "sprintf"?
Answer Posted / guest
prinf will print the data on to the screen.
sprintf will print the data to a buffer.
basically sprintf is used for formatting the output.
printf("%s",google);
char *p;
sprintf(p,"%s",google);
Is This Answer Correct ? | 91 Yes | 18 No |
Post New Answer View All Answers
What is ifstream c++?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What are protected members in c++?
Which should be more useful: the protected and public virtuals?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Why do we use iterators?
What is doubly linked list in c++?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is the role of C++ shorthand's?
What is function overloading in C++?
What's the best free c++ profiler for windows?
Can we distribute function templates and class templates in object libraries?
What apps are written in c++?
What is new in c++?
Explain what are single and multiple inheritances in c++?