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
How do I get a null pointer in my programs?
What are the valid places to have keyword “break”?
shorting algorithmS
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
can any one tel me wt is the question pattern for NIC exam
What is this infamous null pointer, anyway?
Why is c fast?
How can I direct output to the printer?
Do you know what are bitwise shift operators in c programming?
What does the c preprocessor do?
Explain what is wrong in this statement?
What is difference between arrays and pointers?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is the meaning of && in c?
Explain indirection?