Multidimensional array has elements along various dimensions. The elements of a multidimensional array are accessed using multiple indexes. For example a two dimensional array has elements in rows and columns as shown below:
Two indexes are required to access the elements of this array.
multiarray is the element in the 1st row and 1st column which is 200
multiarray is the element in the 1st row and 2nd column which is 300
multiarray is the element in the 1st row and 3rd column which is 500
multiarray is the element in the 2nd row and 1st column which is 130
multiarray is the element in the 2nd row and 2nd column which is 230
and so on....
A multidimensional array is declared using the syntax
multiarray in the above example is declared as:
Nothing yet..be the first to share wisdom.