adplus-dvertising
frame-decoration

Question

What is the function used to allocate memory to an array at run time with Zero initial value to each?

a.

calloc()

b.

malloc()

c.

palloc()

d.

kalloc()

Posted under C Programming

Answer: (a).calloc()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the function used to allocate memory to an array at run time with Zero initial value to each?