What is the Difference between "printf" and "sprintf"?
Answer Posted / lavanya
printf funtion is to write the output to stdout.
sprintf function is to store romatted input output on a
string buffer
Is This Answer Correct ? | 11 Yes | 13 No |
Post New Answer View All Answers
What is null pointer and void pointer?
Difference between overloaded functions and overridden functions
Which is the best c++ compiler?
What does new do in c++?
Explain the pure virtual functions?
Can we use clrscr in c++?
How is modularity introduced in C++?
What is the advantage of c++ over c?
Difference between strdup and strcpy?
Define a nested class.
What is data binding in c++?
Write bites in Turbo c++ Header ("Include") Files.
How many namespaces are there in c++?
How can you differentiate between inheritance and implementation in c++?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?