What is the Difference between "printf" and "sprintf"?
Answer Posted / guest
prinf will print the data on to the screen.
sprintf will print the data to a buffer.
basically sprintf is used for formatting the output.
printf("%s",google);
char *p;
sprintf(p,"%s",google);
| Is This Answer Correct ? | 91 Yes | 18 No |
Post New Answer View All Answers
Which operator cannot overload?
What is c++ course?
How many ways can a variable be initialized into in C++?
What is std :: flush?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
What is time h in c++?
What is a terminating character in c++?
What are dynamic type checking?
What are static member functions?
How to access a variable of the structure?
Why should we use null or zero in a program?
What is Destructor in C++?
What are the four partitions in which c++ compiler divides the ram?
Why c++ is better than c language?
Explain operator overloading.