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

Tell us bitwise shift operators?

1031


What is a null string in c?

1001


What is cohesion in c?

932


How can I open a file so that other programs can update it at the same time?

1152


What is pointer in c?

1149


What are Macros? What are its advantages and disadvantages?

1106


What is a good way to implement complex numbers in c?

1012


Is malloc memset faster than calloc?

1026


Which is better oop or procedural?

1006


What are the two forms of #include directive?

1121


number of times a digit is present in a number

2003


What is 2c dna?

1029


Why is C language being considered a middle level language?

1072


What is the difference between exit() and _exit() function?

1011


Explain what are the different file extensions involved when programming in c?

1069