Computer Science, asked by kami7778, 1 year ago

Which of the following gives the memory address of the first element in array?

Answers

Answered by nancychaterjeestar29
0

Answer:

The memory address register is used to handle the address transferred to the memory unit, and this can be handled either using a bus approach (which we have used in this architecture) or direct input declaration for the memory. In this case we will use a bus setting for the memory, therefore the MAR becomes a simple register which sets its output to the value of the required address from the IR or PC when its control signal mar_load is high. The Memory Address Register (MAR) in a simple microprocessor needs enough bits for the address. For example, if the address requires 8 bits then the The size of the register needs to be 8 bits wide.To get the address of ith index of an array, we use following syntax (arr + i). So as we need address of first index we will use (arr + 0) equivalent to arr.

#SPJ3

Similar questions