data structures using using indices an -dimensional ym ym yymn array is collection of ym ym yymn elements in multi-dimensional arraya particular element is specified by using subscripts as [ ][ ][ [in]where < < < in <mn multi-dimensional array can contain as many indices as needed and as the requirement of memory increases with the number of indices used howeverin practicewe hardly use more than three indices in any program figure shows three-dimensional array the array has three pagesfour rowsand two columns second dimension (columnsfirst dimension (rowsq page page page third dimension figure three-dimensional array note multi-dimensional array is declared and initialized the same way we declare and initialize oneand two-dimensional arrays example consider three-dimensional array defined as int [ ][ ][ calculate the number of elements in the array alsoshow the memory representation of the array in the row major order and the column major order solution three-dimensional array consists of pages each pagein turncontains rows and columns ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , (arow major order ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , ( , , (bcolumn major order the three-dimensional array will contain elements