100.0032 Given: float mydata[20][10];
If the base address of the array is 7200, at what address will we find mydata[12][7] ?
Since the array mydata
is of data type float, each element requires 4-bytes of storage. Each row
(outer subscript) requires 4 * 10 = 40 bytes of storage, and each column (inner
subscript) element requires 4-bytes of storage. Therefore, &mydata[12][7] is:
7200 + 12 * 40 + 7 * 4 = 7200 + 480 + 28
= 7688