- Often data come naturally in the form of a table, e.g., spreadsheet, which needs a two-dimensional array.
Two-dimensional (2D) arrays are indexed by two subscripts:
- row
- column
var arrayName [ x ][ y ] variable_type
Two-dimensional (2D) arrays are indexed by two subscripts:
var arrayName [ x ][ y ] variable_type