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
Can you write the algorithm for Queue?
explain what is an endless loop?
What is preprocessor with example?
What is the -> in c?
What is malloc return c?
Why do we use return in c?
write a program to concatenation the string using switch case?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What is the difference between strcpy() and memcpy() function in c programming?
Is a house a mass structure?
The difference between printf and fprintf is ?
How can you access memory located at a certain address?
What are pointers? Why are they used?
What do you mean by dynamic memory allocation in c? What functions are used?