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 c++ storage classes?
How is computer programming useful in real life?
What is a base class?
What is the basic of c++?
Write bites in Turbo c++ Header ("Include") Files.
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
How the virtual functions maintain the call up?
What are the advantages of c++?
When to use “const” reference arguments in a function?
Why should you learn c++?
What is the difference between object-oriented programming and procedural programming?
What is the default access level?
How does list r; differs from list r();?
Describe delete operator?
How do you master coding?