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
How do you use a 'Local Block'?
please give me some tips for the placement in the TCS.
What is the size of empty structure in c?
What is boolean in c?
Describe the header file and its usage in c programming?
State the difference between x3 and x[3].
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is a shell structure examples?
Why do we need functions in c?
Write a program to generate the Fibinocci Series
What is hash table in c?
What is the Purpose of 'extern' keyword in a function declaration?
Is a pointer a kind of array?
What is the difference between scanf and fscanf?
How many parameters should a function have?