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 are the advantages of using pointers in a program?
What is command line arguments in C++? What are its uses? Where we have to use this?
Will rust take over c++?
Define a pdb file.
What is meant by the term name mangling in c++?
What is the difference between prefix and postfix versions of operator++()?
Explain the difference between c++ and java.
What are the manipulators in c++?
Are php strings immutable?
What is function prototyping? What are its advantages?
Why is c++ not purely object oriented?
Explain about Virtual Function in C++?
What is the use of ::(scope resolution operator)?
How to access a variable of the structure?
Explain rethrowing exceptions with an example?