Knowee
Questions
Features
Study Tools

A one-dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is

Question

A one-dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is

🧐 Not the exact question you are looking for?Go ask a question

Solution

To find the starting address of A[49], we need to consider the memory allocation for the array A.

Given that each element of the array takes up three memory words, we can calculate the total memory occupied by the array as follows:

Total memory occupied by array A = Number of elements * Memory words per element = 75 * 3 = 225 memory words

Since the array is stored at location 1120 decimal, we can determine the starting address of A[49] by subtracting the memory occupied by the previous elements from the starting address.

Starting address of A[49] = Starting address of array A + Memory occupied by previous elements = 1120 + (48 * 3) = 1120 + 144 = 1264 decimal

Therefore, the starting address of A[49] is 1264 decimal.

This problem has been solved

Similar Questions

Consider a two-dimensional array C[12][6] stored in row-major order. Assume there are 3 words per memory cell, the base address of array C is 300, and the first element is C[0][0].What is the address of C[9][2]?

What is the array index type? What is the lowest index? What is the representationof the third element in an array named a

Which of the following shows the memory address of the first element in an array?

The elements of an array are stored successively in memory cells because#a)by this way computer can keep track only the address of the first element and theaddresses of other elements can be calculatedb) the architecture of computer memory does not allow arrays to store other than seriallyc)both of aboved) because the computer memory is linearly structurede) none of the above90. The memory address of the first element of an array is calleda) floor addressb) foundation addressc)first address#d) base addresse) the index address

Interpret where the elements of an array LA are stored, if the base address of LA is 320 & LB =0Assume that int(s) are stored in 4 bytes and double(s) in 8 bytes.a. double LA[12]

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.