For a two-dimensional array, the element with indices i,j would have address B + c • i + d • j, where the coefficients c and d are the row and column address increments, respectively.
More generally, in a k-dimensional array, the address of an element with indices i1, i2, …, ik is