what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??
Answer Posted / manoj
i agree with Vignesh, and one more thing i would like to
add is,
ex:
char b[100];
sprintf( b, "Formatted data: %d / %f", i, f );
In above program, in array b string "Formatted data: %d / %
f" with proper i and f value will be stored.
it will not be printed on the output screen.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
can anyone suggest some site name..where i can get some good data structure puzzles???
How many types of errors are there in c language? Explain
What is a substring in c?
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
Is it possible to initialize a variable at the time it was declared?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is a pointer variable in c language?
How can I dynamically allocate arrays?
What is the difference between formatted&unformatted i/o functions?
What are dangling pointers in c?
What is #include conio h?