What is the Difference between "printf" and "sprintf"?
Answer Posted / nelson
The only difference between sprintf() and printf() is that
sprintf() writes data into a character array, while printf
() writes data to standard output device.
| Is This Answer Correct ? | 118 Yes | 10 No |
Post New Answer View All Answers
How many types of classes are there in c++?
What is wrapper class in c++?
What is auto type c++?
Write some differences between an external iterator and an internal iterator?
Are iterators pointers?
What is difference between class and function?
When should you use global variables?
How does the copy constructor differ from the assignment operator (=)?
What is exception handling? Does c++ support exception handling?
What is the precedence when there is a global variable and a local variable in the program with the same name?
True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends
What is c++ virtual inheritance?
Define token in c++.
What is the use of default constructor?
Can user-defined object be declared as static data member of another class?