4.2.1.2 Single- and multi-dimensional arrays (or equivalent) Flashcards

1
Q

What is an array?

A

A group of data items that are the same data type and are stored under one identifier. Each item can be accessed by it’s index.
A one-dimensional array is a useful way of representing a vector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a two-dimensional array?

A

An array that uses two index numbers which could be represented in a grid / table. It uses two square brackets for the row and column of each data item.
A two-dimensional array is a useful way of representing a matrix.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly