if the address of a 2d array would be
Address of A[j] = start_address + ( ( j + (i*NumCols)) *sizeof(int) )
and the address of a 3d array would be
Address of A[j][k] = start_address + (k ( j + (i * NumRows)) * NumCols) * *sizeof(data_type)
what would be the address of a 4D array
A[j][k][l]
And a 5D array
A[j][k][l][m]
i just don't know how to get it ?
Address of A[j] = start_address + ( ( j + (i*NumCols)) *sizeof(int) )
and the address of a 3d array would be
Address of A[j][k] = start_address + (k ( j + (i * NumRows)) * NumCols) * *sizeof(data_type)
what would be the address of a 4D array
A[j][k][l]
And a 5D array
A[j][k][l][m]
i just don't know how to get it ?