arr[i][j] = *(ptr + (i x no_of_cols + j))
1 2 3 4 5 6 7 8 9 10 11 12
arr[i][j] = baseAddress + [(i x no_of_cols + j) x size_of_data_type]