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 oops and list its features in c++?

1003


what does the following statement mean? int (*a)[4]

1035


What is the need of a destructor? Explain with the help of an example.

963


What is the difference between #import and #include?

1003


Should the member functions which are made public in the base class be hidden?

977


Do class declarations end with a semicolon? Do class method definitions?

1094


What is #include iomanip?

961


what is data abstraction in C++?

1035


How can you differentiate between inheritance and implementation in c++?

1161


What is c++ hiding?

1132


How many characters are recognized by ANSI C++?

1365


What are protected members in c++?

1082


State the difference between pre and post increment/decrement operations.

1036


What is a node class in c++?

1036


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1096