[Solved] 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.

Comments