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
What is mean by data types in c?
What are the different types of data structures in c?
What are valid operations on pointers?
What are qualifiers?
Why void main is used in c?
Why we use void main in c?
how to find anagram without using string functions using only loops in c programming
Write a program for finding factorial of a number.
int i=10; printf("%d %d %d", i, i=20, i);
Explain how can type-insensitive macros be created?
explain what is fifo?
Explain enumerated types in c language?
What is printf () in c?
What does int main () mean?
Do string constants represent numerical values?