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

How do I get a null pointer in my programs?

1164


What are the valid places to have keyword “break”?

1144


shorting algorithmS

2312


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1257


can any one tel me wt is the question pattern for NIC exam

2025


What is this infamous null pointer, anyway?

1101


Why is c fast?

1119


How can I direct output to the printer?

1370


Do you know what are bitwise shift operators in c programming?

1153


What does the c preprocessor do?

1158


Explain what is wrong in this statement?

1178


What is difference between arrays and pointers?

1147


Linked lists -- can you tell me how to check whether a linked list is circular?

1133


What is the meaning of && in c?

1085


Explain indirection?

1179