adplus-dvertising
frame-decoration

Question

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

a.

Malloc is used for dynamic allocation of memory, while calloc 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.

Both (b) and (c)

Posted under UNIX

Answer: (d).Both (b) and (c)

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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