programming example write program to read and display matrix #include #include void display(int (*)[ ])int main(int ijmat[ ][ ]clrscr()printf("\ enter the elements of the matrix")for( = ; < ; ++for( ++scanf("% "&mat[ ][ ])display(mat)return void display(int (*mat)[ ]int ijprintf("\ the elements of the matrix are")for( ++printf("\ ")for( = ; < ; ++printf("\ % ",*(*(mat )+ ))output enter the elements of the matrix the elements of the matrix are note double pointer cannot be used as array thereforeit is wrong to declare'int **matand then use 'matas array these are two very different data types used to access different locations in memory so running such code may abort the program with 'memory access violationerror array is not equivalent to double pointer 'pointer to pointer of tcannot serve as ' array of tthe array is equivalent to pointer to row of tand this is very different from pointer to pointer of when double pointer that points to the first element of an array is used with the subscript notation ptr[ ][ ]it is fully dereferenced two times and the resulting object will have an address equal to the value of the first element of the array multi-dimensional arrays multi-dimensional array in simple terms is an array of arrays as we have one index in onedimensional arraytwo indices in two-dimensional arrayin the same waywe have indices in an -dimensional array or multi-dimensional array converselyan -dimensional array is specified