Considering the size of 'float' variable as four bytes, if base address of an…
2016
Considering the size of 'float' variable as four bytes, if base address of an array of float is 100, then the address of 4th cell is:
Answer: D. 112 — The address of the i-th cell in a 0-indexed array is calculated as Base Address + i x Size. For the 4th cell (index 3), the address is 100 + 3 x 4 = 112. If…
- A.
116
- B.
104
- C.
400
- D.
112
Attempted by 548 students.
Show answer & explanation
Correct answer: D
The address of the i-th cell in a 0-indexed array is calculated as Base Address + i x Size. For the 4th cell (index 3), the address is 100 + 3 x 4 = 112. If considering 1-based indexing, it would be 100 + 4 x 4 = 116. Standard convention assumes 0-indexing, matching option D.
Loading lesson…