Ask Question
3 March, 09:39

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

+3
Answers (1)
  1. 3 March, 13:27
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers