0 votes
325 views
in C program by (98.9k points)
edited
Differentiate between calloc() and malloc()

1 Answer

0 votes
by (1.7k points)
selected by
 
Best answer
calloc() and malloc() are memory dynamic memory allocating functions. The only difference between them is that calloc() will load all the assigned memory locations with value 0 but malloc() will not.

Related questions

0 votes
1 answer 377 views
+1 vote
1 answer 354 views
asked Nov 15, 2023 by Doubtly (98.9k points)
0 votes
1 answer 306 views
0 votes
0 answers 233 views
0 votes
1 answer 449 views
0 votes
1 answer 397 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
MrRam Earned a badge

5.7k questions

5.1k answers

108 comments

649 users

...