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 Difference between "printf" and "sprintf"?

Answer Posted / guest

prinf will print the data on to the screen.
sprintf will print the data to a buffer.

basically sprintf is used for formatting the output.

printf("%s",google);
char *p;
sprintf(p,"%s",google);

Is This Answer Correct ?    91 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How java is different from c and c++?

1258


Explain the use of vtable.

1133


What is c++ good for?

1116


How long it will take to learn c++?

1104


What are the main features of c++?

1052


What will happen if a pointer is deleted twice?

1250


How should a contructor handle a failure?

1237


Explain terminate() and unexpected() function?

1166


Is atoi safe?

1095


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1159


Why is main function important?

1174


What is rvalue?

1194


What are the various access specifiers in c++?

1086


What is the use of 'this' pointer?

1300


What are vectors used for in c++?

1142