A dynamic array stores a sequence in a block of memory larger than needed. Its size is the number of elements, its capacity the number of cells in the block. Adding an element to a full array first moves the elements to a larger block, whose capacity is a constant factor larger.
Computer Science · Glossaire
Qu'est-ce que « Dynamic array, size and capacity » ?
Aussi appelé : dynamic array · size (of a dynamic array) · capacity (of a dynamic array)