15 pts What is the address of the 13th element of a 26 eleme
(15 pts) What is the address of the 13th element of a 26 element array whose base address is 0x1000 BC9C If the element is an 17 byte data structure where the start of each element is on a word boundary?
Solution
Address of an element = B + W * ( I – LB )
Where,
 B = Base address
 W = size of element (in byte)
 I = Subscript of element.i.e address of element whose address is to be found
 LB = Lower Bound of array(when not specified assume 0)
using the above formula:
 address of 13th element   
 (here 13th element is on 12th subscript of array)= 0x1000BC9C + 17*(12-0)
 =268483740+(17*12)
 =268483944 (in decimal)
 = 0x1000BD68 (in hex)
       

