What is the Difference between "printf" and "sprintf"?
Answer Posted / namitha
printf is used to write the data in its format.
sprintf is used to write formatted data to string.
| Is This Answer Correct ? | 21 Yes | 8 No |
Post New Answer View All Answers
Explain the difference between struct and class in terms of access modifier.
Is c++ built on c?
Can you use the function fprintf() to display the output on the screen?
What is istream c++?
What is the difference between strcpy() and strncpy()?
What is pure virtual function? Or what is abstract class?
What are manipulators in c++ with example?
Is swift faster than go?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What is virtual base class?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
How would you differentiate between a pre and post increment operators while overloading?
Are vectors passed by reference c++?
What is size_type?
What are destructors?