Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
An array is a fixed-size collection of elements of the same type stored in contiguous memory locations. It allows efficient access to individual elements using an index.
Related terms
Indexing: Indexing refers to accessing individual elements within an array by specifying their position using an index value.
Length/Size: The length or size represents the total number of elements present in an array.
Multidimensional Array: A multidimensional array is an array with multiple dimensions (rows and columns) that allows storing data in tabular form.