. Give the mapping function used to calculate the address of the kth element of a one-dimensional array of integers, assuming element zero is stored at location 500, the array is stored in ascending memory locations, and that an integer occupies 4 bytes of memory.

Respuesta :

Answer:

Explanation:

def kthLocation(k):

   location = 500 + 4*k

   #location = base_address + data-type-size * (thresold)

   return location

Ver imagen dayanandghelaro