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
Why c language?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What is the meaning of c in c language?
What are linked lists in c?
#include
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is your stream meaning?
what is the structure pointer?
Explain how do you sort filenames in a directory?
How do you print an address?
What is c preprocessor mean?
Here is a neat trick for checking whether two strings are equal
What are pointers in C? Give an example where to illustrate their significance.
What is difference between stdio h and conio h?
Tell me when would you use a pointer to a function?