what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??
Answer Posted / jack
The printf subroutine converts, formats, and writes the
Value parameter values, under control of the Format
parameter, to the standard output stream.
The sprintf subroutine converts, formats, and stores the
Value parameter values, under control of the Format
parameter, into consecutive bytes, starting at the address
specified by the String parameter. The sprintf subroutine
places a null character (\0) at the end. You must ensure
that enough storage space is available to contain the
formatted string.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is difference between scanf and gets?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
In c programming language, how many parameters can be passed to a function ?
What is c definition?
What is #include stdio h?
What is a shell structure examples?
What are the types of data types and explain?
Who invented b language?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What is call by value in c?
How can you determine the size of an allocated portion of memory?
What is register variable in c language?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
How can I write a function analogous to scanf?
Explain 'far' and 'near' pointers in c.