1.

Garbage collector frees the programmer from worrying about ___________(a) Dangling pointers(b) Creating new objects(c) Memory leak(d) Segmentation errorsThe question was posed to me in an online quiz.Origin of the question is DMA Functions, Memory Leak, Dangling Pointers topic in division Dynamic Memory Allocation in C of C

Answer»

The correct answer is (c) MEMORY leak

Explanation: A garbage collector is a program that automatically removes unwanted DATA held TEMPORARILY in the memory during processing. Hence it FREES the programmer from WORRYING about memory leaks.



Discussion

No Comment Found

Related InterviewSolutions