Aptitude Question: Download Questions PDF
In a two-dimensional array, X (9, 7), with each element occupying 4 bytes of memory, with the address of the first element X (1, 1) is 3000, find the address of X (8, 5)?
Answer:
In a two-dimensional array, X (9, 7), with each element occupying 4 bytes of memory, with the address of the first element X (1, 1) is 3000, find the address of X (8, 5).
Ans: 3000 + 4(8 * 7) + 4 * 5
= 3000 + 224+ 20
= 3244
Ans: 3000 + 4(8 * 7) + 4 * 5
= 3000 + 224+ 20
= 3244
Download Aptitude Interview Questions And Answers
PDF