answersLogoWhite

0

In which way calloc is better than malloc?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

What calloc does is:

void *calloc (size_t s1, size_t s2)

{

size_t s= s1*s2;

void *p= malloc (s);

if (p && s) memset (p, 0, s);

return p;

}

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In which way calloc is better than malloc?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Who is better jaime or jak?

jaime is way better than jak but jaks alright way better than mitch but jaimes better than them both !


Is Bing Way Better Than Google?

Yes Bing Way Better Than Google.


Is Justin Bieber better than Cory Monteith?

Justin Bieber is way better than Cory Monteith.


Zoo york better than blind?

Zoo york is way better than blind Zoo york is way better than blind


Can alex sing better than nat?

no way nat can sing way better than alex!


Are Scottish better than Germans?

Yes they are way better than them


Are toshiba computers better than gateway computers?

way way way better dude


Is the Joker better than Gru?

way better


Is an A better than an A?

yes it is its a way better grade!


Is hockey better than swimming?

hockey is way better than suimming


Is Pokemon better than Instagram?

Yes it is way better than instagram


Which homepage is better than Yahoo?

Google is way better than yahoo.