In which of the following cases dynamic arrays are not preferred?

Q & ACategory: Data StructureIn which of the following cases dynamic arrays are not preferred?
Admin Staff asked 4 years ago

In which of the following cases dynamic arrays are not preferred?
a) If the size of the array is unknown
b) If the size of the array changes after few iterations
c) If the memory reallocation takes more time i.e. expensive
d) If the array holds less number of elements

1 Answers
Admin Staff answered 4 years ago

d) If the array holds less number of elements