A real array A[i,j, k] has index i ranging from 1 to 4, index j ranging from 0 to 4, and index k ranging from 5 to 10. Reals take 8 bytes each. Suppose array A is stored starting at byte 0. Find the location of:
a) A[3,4,5] b)A[l,2,7] c) A[4,3,9].
Repeat Exercise 6.4.8 if A is stored in column-major order.
Exercise 6.4.8
A real array A[i,j, k] has index i ranging from 1 to 4, index j ranging from 0 to 4, and index k ranging from 5 to 10. Reals take 8 bytes each. Suppose array A is stored starting at byte 0. Find the location of:
a) A[3,4,5] b)A[l,2,7] c) A[4,3,9].