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 rectangular 2D array is a collection of elements organized in rows and columns, creating a grid-like structure. Each element can be accessed using its row and column index.
Related terms
Columns: The number of columns corresponds to the width or horizontal dimension of the rectangular 2D array.
Elements: These are individual values stored within the rectangular 2D array.
Indexing: Refers to accessing specific elements in the rectangular 2D array using their row and column indices.