Computer Science Fundamentals Operating Systems Objective
Mar 11, 2013

The differences between malloc( ) and calloc() are:

Choose the correct answer:
A) Malloc is used for dynamic allocation of memory, while cal:1'c can't be used for that purpose
B) Malloc needs only one argument. while cal loc needs two.
C) unlike malloc, calloc allocates memory and initializes it to 0.
D) b & c both
Detailed Explanation

Option d is right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback