Two Dimensional Arrays in C++
Multi-dimensional arrays, often called a matrix, are possible in C++. C/C++ treats them as an array of arrays. Because of how they are defined, each array within the array will be of the same size. This actually makes them easier to work with. To define them, you use two sets of brackets, and can think…