Computer Science, asked by aa15shipandey, 5 months ago

Consider the following 0x86(MASM) code:
Array DWORD 1,2,3,4,5,6,7,8,9
mov eax, SIZEOF Array
w
What value will be moved into the register EAX?
a) 9
b) 18
c) 27
d) 36​

Answers

Answered by elumalaimurugesan201
7

Answer:

correct option is D)36

Explanation:

mark me brain list

Answered by narenkartikidk
0

Answer: 36

Explanation: The instruction "mov eax, SIZEOF Array" moves the size of the Array into the EAX register. The Array is defined as a DWORD, which is 4 bytes long. The Array has 9 elements, so the total size of the Array is 4 bytes x 9 elements = 36 bytes.

SIZEOF operator in assembly is used to determine the size of the data type or data structure, in this case, the Array is of DWORD type and it has 9 elements so the total size will be 4 bytes x 9 elements = 36 bytes.

Option a) 9, b) 18 and c) 27 are not correct as they don't match the size of the array.

So the final answer would be d) 36.

Similar questions