Hello,

I am having some problem handling 2-D array through pointer.
We know a pointer is equivalent to an array.
for example::
Code:
int arr[5]= {1,2,3,4,5};
int *arrp;
arrp = arr;
Then *(arrp+i) will give arr[i].

I couldn't access the elements of a 2-D array through a double pointer.
Code:
int arr[2][2] = {{1,2},{3,4}};
int **arrp;
arrp = arr;
Then *(arrp+i) will give arr[0][i] But I couldn't access elements of other rows.

I appreciate any help.

Thank you
veena