Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can you write the algorithm for Queue?

2104


explain what is an endless loop?

1082


What is preprocessor with example?

1055


What is the -> in c?

1007


What is malloc return c?

1018


Why do we use return in c?

993


write a program to concatenation the string using switch case?

2093


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1164


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5947


What is the difference between strcpy() and memcpy() function in c programming?

1083


Is a house a mass structure?

1088


The difference between printf and fprintf is ?

1279


How can you access memory located at a certain address?

1112


What are pointers? Why are they used?

1175


What do you mean by dynamic memory allocation in c? What functions are used?

1160