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
In the context of a 2D array, 'rectangular' refers to an array where all rows have the same number of columns. Each row is of equal length, making it easier to access specific positions within the array.
Related terms
Jagged Array: A type of 2D array where different rows can have different numbers of columns, resulting in irregular shapes.
Square Array: A special type of rectangular array where the number of rows is equal to the number of columns.