121k views
1 vote
If the base address of an array is located at 0x1000FFF4, what would the following instructions be equivalent to (assume this array has the name, my_array)? li $t0, 45 li $s1, 0x1000FFF4 sw $t0, 8($s1) Group of answer choices my_array[0] = 45 my_array[1] = 45 my_array[2] = 45 my_array[8] = 45 my_array[0] = 0x1000FFF4 my_array[1] = 0x1000FFF4 my_array[2] = 0x1000FFF4 my_array[8] = 0x1000FFF4

User Bob Walsh
by
6.7k points

1 Answer

2 votes

Answer:

The correct option to the following question is my_array[2] = 45.

Step-by-step explanation:

Because the offset '8' which used for the subscript 8 divided by 4 which is 2.

So, that's why my_array[2] = 45 is the correct answer to the following question.

An array is the data type in the programming languages which stores the same type of data at a time whether it an integer type or string type.

User Tet
by
5.9k points