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
Will the following program execute?
How does c++ structure differ from c++ class?
To what does “event-driven” refer?
Is arr and &arr are same expression for an array?
Can I learn c++ without c?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
How do I get good at c++ programming?
Explain dangling pointer.
Is c++ the most powerful language?
Is eclipse good for c++?
What are default parameters? How are they evaluated in c++ function?
What do you mean by stack unwinding in c++?
What is functions syntax in c++?
What is conditions when using boolean operators?
Which operator cannot be overloaded c++?