what is the diff between the printf and sprintf functions??
and what is the syntax for this two functions ??

Answer Posted / guest

printf statement print the result with comment
sprintf statement print the string
Syntax
printf(" ");
sprintf(object name[argument]);

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is use of malloc and calloc?

1380


Explain how can I convert a number to a string?

642


Explain how many levels deep can include files be nested?

622


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1347


Explain the difference between call by value and call by reference in c language?

643






using for loop sum 2 number of any 4 digit number in c language

1731


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

665


Why do we need a structure?

583


Is c object oriented?

536


What are pointers in C? Give an example where to illustrate their significance.

746


What is echo in c programming?

555


Write the syntax and purpose of a switch statement in C.

618


When should we use pointers in a c program?

626


What is c definition?

737


What is c programing language?

612