once the memory is allocated for the two-dimensional arraywe can use subscripts to access its elements when we writearr[ ][ ]it means we are looking for the ith pointer pointed to by arrand then for the jth int pointed to by that inner pointer when we have to pass such an array to functionthen the prototype of the function will be written as func(int **arrint rowsint cols)in the above declarationfunc accepts pointer-to-pointer-to-int and the dimensions of the arrays as parametersso that it will know how many rows and columns are there