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 a spanning Tree?
What is #line?
What is the use of getch ()?
How can you convert integers to binary or hexadecimal?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Explain how do you list files in a directory?
Find MAXIMUM of three distinct integers using a single C statement
Why do we need arrays in c?
Is malloc memset faster than calloc?
What are the types of macro formats?
What are global variables?
How is a structure member accessed?
what is the different bitween abap and abap-hr?
How can I read data from data files with particular formats?
What is memcpy() function?