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 / vignesh1988i

the printf and sprintf functions are used to output to the
screen.....
in printf... just we can print the necessary things as
we wanted
SYNTX is:: printf("format specifiers..(%d or %c
etc)",list of agruments..(arg1,arg2... arg n);
hrewr this function directly output whatever you are giving
inside ....
but sprintf is called Stream printf... where it will store
whatever we output to the screen in an array (ie..stream)
and then output to the screen;;;

sprintf(array base address,"format specifications",variables);

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is using exit() the same as using return?

1461


What is main () in c?

1117


How can I use a preprocessorif expression to ?

1111


Explain what is the most efficient way to store flag values?

1271


Why clrscr is used after variable declaration?

1762


How can I send mail from within a c program?

1077


p*=(++q)++*--p when p=q=1 while(q<=6)

1814


What does double pointer mean in c?

1257


What is d'n in c?

1175


What are the differences between Structures and Arrays?

1272


In which header file is the null macro defined?

1401


Differentiate between the expression “++a” and “a++”?

1309


What is c token?

1123


Explain how do you declare an array that will hold more than 64kb of data?

1497


Explain what is the difference between #include and #include 'file' ?

1080