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
Is string an object in c++?
What size is allocated to the union variable?
What is a binary file? List the merits and demerits of the binary file usagein C++.
What are abstract data types in c++?
What is #include cmath?
What is the use of c++ programming language in real life?
Why is c++ called oops?
Define a constructor - what it is and how it might be called (2 methods)?
What is a modifier in c++?
What is array give example?
Can member data be public?
Mention the ways in which parameterized can be invoked.
What are the advantages of using typedef in a program?
What is ios in c++?
What is the maximum combined length of command line arguments including the space between adjacent arguments?