Hello,
I am having some problem handling 2-D array through pointer.
We know a pointer is equivalent to an array.
for example::
Then *(arrp+i) will give arr[i].Code:int arr[5]= {1,2,3,4,5}; int *arrp; arrp = arr;
I couldn't access the elements of a 2-D array through a double pointer.
Then *(arrp+i) will give arr[0][i] But I couldn't access elements of other rows.Code:int arr[2][2] = {{1,2},{3,4}}; int **arrp; arrp = arr;
I appreciate any help.
Thank you
veena