What is the Difference between "printf" and "sprintf"?
Answer Posted / ramanji
printf() is used to send the output to the output consoled
device i.e,monitor
and the sprintf() is send the output to the specified file
that will be given in the parameters
| Is This Answer Correct ? | 8 Yes | 11 No |
Post New Answer View All Answers
Do you need a main function in c++?
What are formatting flags in ios class?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
Can you declare an array without a size in c++?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
How do you traverse a btree in backward in-order?
What do you mean by ‘void’ return type?
What is object in c++ wikipedia?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
Define pointers?
Why c++ is not a pure oop language?
What is the difference between an array and a list?
What is a constructor in c++ with example?
What are the various situations where a copy constructor is invoked?