100.0036 Given: double
mydata[32][15];
If the base address of the array is 7200, at what address will we find mydata[73][9] ?
Since the array mydata
is of data type double, each element requires 8-bytes of storage. Each row
(outer subscript) requires 15 * 8 = 120 bytes of storage, and each column
(inner subscript) element requires 8-bytes of storage. Therefore, &mydata[32][15] is:
7200 + 73 * 120 + 9 * 8 = 7200 + 8760 +
72 = 16032