Answers for "accessing multidimensional array value using pointers in c+"

2

use of pointer in multidimensional array

arr[i][j] = *(ptr + (i x no_of_cols + j))
Posted by: Guest on July-02-2020
0

use of pointer in multidimensional array

arr[i][j] = baseAddress + [(i x no_of_cols + j) x size_of_data_type]
Posted by: Guest on July-02-2020

Browse Popular Code Answers by Language