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 c++ object?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
Explain what is polymorphism in c++?
Why are arrays usually processed with for loop?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Why is polymorphism useful?
What are destructors?
Which operator cannot be overloaded c++?
What is capacity in vector in c++?
What is the iunknown interface?
Can union be self referenced?
Can you Mention some Application of C/C++?
When is dynamic checking necessary?
Why is null pointer used?
Is it possible to use a new for the reallocation of pointers ?