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

Will the following program execute?

1040


How does c++ structure differ from c++ class?

1140


To what does “event-driven” refer?

1062


Is arr and &arr are same expression for an array?

1057


Can I learn c++ without c?

1149


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1113


How do I get good at c++ programming?

1172


Explain dangling pointer.

1133


Is c++ the most powerful language?

1093


Is eclipse good for c++?

1059


What are default parameters? How are they evaluated in c++ function?

1172


What do you mean by stack unwinding in c++?

1234


What is functions syntax in c++?

1146


What is conditions when using boolean operators?

1238


Which operator cannot be overloaded c++?

1020