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
Between macros and functions,which is better to use and why?
What is the size of enum in bytes?
how do you execute a c program in unix.
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
How can I sort more data than will fit in memory?
What is the difference between printf and scanf )?
What is the hardest programming language?
What are actual arguments?
Does * p ++ increment p or what it points to?
Write a factorial program using C.
all c language question
Why array is used in c?
What are the functions to open and close file in c language?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
find the sum of two matrices and WAP for it.