what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??
Answer Posted / vignesh1988i
the printf and sprintf functions are used to output to the
screen.....
in printf... just we can print the necessary things as
we wanted
SYNTX is:: printf("format specifiers..(%d or %c
etc)",list of agruments..(arg1,arg2... arg n);
hrewr this function directly output whatever you are giving
inside ....
but sprintf is called Stream printf... where it will store
whatever we output to the screen in an array (ie..stream)
and then output to the screen;;;
sprintf(array base address,"format specifications",variables);
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
what is the height of tree if leaf node is at level 3. please explain
Difference between Function to pointer and pointer to function
What are the modifiers available in c programming language?
When was c language developed?
What are the various types of control structures in programming?
Lists the benefits of c programming language?
How do you determine the length of a string value that was stored in a variable?
regarding pointers concept
What are terms in math?
What is a program?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What is structure data type in c?
Tell us something about keyword 'auto'.
Can we change the value of #define in c?