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 oops and list its features in c++?
what does the following statement mean? int (*a)[4]
What is the need of a destructor? Explain with the help of an example.
What is the difference between #import and #include?
Should the member functions which are made public in the base class be hidden?
Do class declarations end with a semicolon? Do class method definitions?
What is #include iomanip?
what is data abstraction in C++?
How can you differentiate between inheritance and implementation in c++?
What is c++ hiding?
How many characters are recognized by ANSI C++?
What are protected members in c++?
State the difference between pre and post increment/decrement operations.
What is a node class in c++?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?