Check out example codes for "c++ passing two dimensional array to function". It will help you in understanding the concepts better.

Code Example 1

Pass a pointer to a pointer

void processArr(int **a) {
   // Do Something
}
// When calling:
int **array;
array = new int *[10];
for(int i = 0; i <10; i++)
   array[i] = new int[10];
processArr(array);

Learn ReactJs, React Native from akashmittal.com