bonetanne2694 bonetanne2694
  • 10-01-2020
  • Computers and Technology
contestada

What is meant by a dynamic array? What is the advantage of a dynamic array over a regular array?

Respuesta :

Debel
Debel Debel
  • 11-01-2020

Answer & Explanation:

A dynamic array is an array that grow (item can be added) and shrink (item can be removed) as required and it does not have limit to it structural size except for the size of it main memory.

one obvious advantage of a dynamic array over a regular array is that, in situations where the size of the data structure is not known during creation, a dynamic array will come in handy over a regular one.

Another advantage I can think of, is the efficiency in terms of memory usage i.e. almost no memory overhead.

Answer Link

Otras preguntas

Unlike Britain, France, and Russia, the United States A. controlled large areas of China. B. wanted to keep trade in China open. C. had no interest in trade
What power did the articles of confederation give to the national government
how do you solve this 2(x +3) = 8
The Russian plain is also known by which of the following names
Substitute 3x+y=4 5x-y=22
complete the statement: if 8= m/4, then m-12=
Write the volume in cm3 of a container which holds 2.250 litres
A policy whereby a certain number of Indian slaves were granted to landowners by the king is called _____. peninsular viceroyalty hacienda encomienda
Your new-caught, sullen peoples, Half-devil and half-child. What does the passage from Kipling's "White Man's Burden" most likely mean? A That the people they c
WHY DO YOU THINK PALEOINDIAN ARTIFACTS HAVE BEEN FOUND ON HILLS AND RIDGES OVERLOOKING STREAMS?