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