pointer 2d array code example
Example 1: use of pointer in multidimensional array
arr[i][j] = *(ptr + (i x no_of_cols + j))
Example 2: use of pointer in multidimensional array
1 2 3 4 5 6 7 8 9 10 11 12
arr[i][j] = *(ptr + (i x no_of_cols + j))
1 2 3 4 5 6 7 8 9 10 11 12