A two – dimensional array ‘x’ with 3 rows and 3 columns is shown below:
We can see a two – dimensional array as an array of one – dimensional array for easier understanding. Two – dimensional array is the simplest form of a multidimensional array. Similarly array int x can store total (5*10*20) = 1000 elements. The array int x can store total (10*20) = 200 elements. The total number of elements that can be stored in a multidimensional array can be calculated by multiplying the size of all the dimensions.