Data structure. One-dimensional array. | Page 3

Arrangements or arrays?

An array (array) is a collection of data of the same type, which are stored in consecutive memory locations and receive a common name.

Arrangements

To refer to a specific element of an array, an index must be used, which specifies its relative position in the array. An arrangement is a finite, homogeneous and ordered collection of elements.

Finite: Every arrangement has a limit; that is, it must be determined what will be the maximum number of elements that can be part of the arrangement.

Homogenous: All elements of the array must be of the same type.

Ordered: You can determine which is the first element, the second, the third, and the nth element.