Ask Question

Given the following data definition

Array:. word 3, 5, 7, 23, 12, 56, 21, 9, 55

The address of the last element in the array can be determined by:

Array

Array + 36

36 + Array

Array + 32

40 + Array

+5
Answers (1)
  1. 10 March, 01:20
    0
    Array + 36.

    Explanation:

    The array contains the address of the first element or the starting address. So to find the address of an element we to add the size*position to the starting address of the array. Which is stored in the variable or word in this case.

    There are 9 elements in the array and the size of integer is 4 bytes. So to access the last element we have to write

    array + 4*9

    array+36
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given the following data definition Array:. word 3, 5, 7, 23, 12, 56, 21, 9, 55 The address of the last element in the array can be ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers