Skip to main content

Section 7 - Data Structures

Arrays

Arrays are static data structures, meaning they only hold a finite number of items which are accessed via indices. A zero-indexed array means the first item is accessed with the index 0.

A two-dimensional (2D) array is where each item is a 1D array. This can be visualised as a table.