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

What is a catch statement?

1047


How is new() different from malloc()?

1122


Explain mutable storage class specifier.

1086


What is a singleton class c++?

1034


What is a c++ map?

1398


How do we implement inheritance in c++?

1128


Do you know what are pure virtual functions?

1144


What are register variables?

1145


What is binary object model?

1026


Why would you use pointers in c++?

1149


Name the implicit member functions of a class.

1080


Explain dangling pointer.

1126


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1037


What is the standard template library (stl)?

1776


What is setbase c++?

1128