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
A one-dimensional (1D) array is a linear collection of elements stored in contiguous memory locations. It allows storing multiple values under one name and accessing them using indices.
Related terms
Array Index: The array index refers to the position of an element within an array. It starts from 0 for the first element and increments by 1 for each subsequent element.
Array Length: The array length is the total number of elements in an array. It represents the size or capacity of the array.
Array Initialization: Array initialization is the process of assigning initial values to elements in an array, either individually or using a loop.