Arrays are elements of the same type placed in adjoining memory locations. The elements can be individually referenced by a unique identifier with an added index.

This allows you to declare multiple variable values of a specific type and access them individually without needing to declare a variable for each value.

Array initialization

A fixed size raw array matrix that is a 2D raw array

Dynamically sized raw array

Array size type safe at compile time

Expanding dynamic size array by using std::vector

Dynamic size matrix using std::vector for storage