what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??
Answer Posted / manoj
i agree with Vignesh, and one more thing i would like to
add is,
ex:
char b[100];
sprintf( b, "Formatted data: %d / %f", i, f );
In above program, in array b string "Formatted data: %d / %
f" with proper i and f value will be stored.
it will not be printed on the output screen.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Tell us bitwise shift operators?
What is a null string in c?
What is cohesion in c?
How can I open a file so that other programs can update it at the same time?
What is pointer in c?
What are Macros? What are its advantages and disadvantages?
What is a good way to implement complex numbers in c?
Is malloc memset faster than calloc?
Which is better oop or procedural?
What are the two forms of #include directive?
number of times a digit is present in a number
What is 2c dna?
Why is C language being considered a middle level language?
What is the difference between exit() and _exit() function?
Explain what are the different file extensions involved when programming in c?