adplus-dvertising
frame-decoration

Question

What is the function used to allocate memory to an array at run time without initializing array elements?

a.

calloc()

b.

malloc()

c.

palloc()

d.

kalloc()

Posted under C Programming

Answer: (b).malloc()

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 without initializing array elements?