Multidimensional Arrays

An array that has more than one subscrpt is known as a multidimensional array. Multidimensional arrays can be visualizes as arrays of arrays.

A two-dimensional array is the simplest form of a multidimensional array. In a two-dimensional array, two subscripts are enclosed in square brackets. The rirst subscript designates the row and the second subscript designates the column. A two-dimensional array is used for table processing or matrix manipulation.
Array Declaration
The general form of a two-dimensional array declaration in C++ is:
type array-name[rows][coloumns];
LEARN MORE>>

No comments: