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 a catch statement?
How is new() different from malloc()?
Explain mutable storage class specifier.
What is a singleton class c++?
What is a c++ map?
How do we implement inheritance in c++?
Do you know what are pure virtual functions?
What are register variables?
What is binary object model?
Why would you use pointers in c++?
Name the implicit member functions of a class.
Explain dangling pointer.
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What is the standard template library (stl)?
What is setbase c++?