Which of the following is a disadvantage of dynamic arrays?

Which of the following is a disadvantage of dynamic arrays?
A. Locality of reference
B. Data cache utilization
C. Random access
D. Memory leak
 
Answer: D
Explanation: Dynamic arrays share the advantage of arrays, added to it is the dynamic addition of elements to the array. Memory can be leaked if it is not handled properly during allocation and deallocation. It is a disadvantage.
 

Tìm kiếm

Back
Top