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 does int main () mean?
how to write optimum code to divide a 50 digit number with a 25 digit number??
where are auto variables stored? What are the characteristics of an auto variable?
Why c is called a mid level programming language?
What is the difference between single charater constant and string constant?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
Can you write the function prototype, definition and mention the other requirements.
What are the types of variables in c?
Explain b+ tree?
Explain void pointer?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is a pointer on a pointer in c programming language?
Write a program on swapping (100, 50)
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
will u please send me the placement papers to my mail???????????????????