In the function realloc(), if the new size of the memory block is larger than the old size, then the added memory ___________
(a) is initialized to junk values
(b) is initialized to zero
(c) results in an error
(d) is not initialized
I got this question in an online quiz.
My doubt stems from DMA Functions, Memory Leak, Dangling Pointers topic in portion Dynamic Memory Allocation in C of C