How is multidimensional arrays defined in terms of an array of pointer?
An element in a multidimensional array like two-dimensional array can be shown by pointer expression as follows:
*(*(a+i)+j)
It shows the element a[i][j]. The base address of the array a is &a[0][0] and initializing at this address, the compiler assigns contiguous space for all the element row-wise. The first element of second row is at once after last element of first row and so on. .