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 is static data member similar to a global variable?
What character terminates all character array strings a) b) . c) END
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What is called array?
Will c++ be replaced?
What is abstract class in c++?
What jobs can you get with a c++ certification?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What is a class template?
How the keyword struct is different from the keyword class in c++?
Why do we use constructor?
Out of fgets() and gets() which function is safe to use?
What is iterator in c++?
What is the best ide for c++?