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

Download Aptitude Interview Questions And Answers PDF

Previous QuestionNext Question
In which of the system decimal number 184 is = to 1234?A shopkeeper allows discount of 10% on the marked price of an item but charges a sales tax of 8% on the discounted price.If the customer pays Rs.680.40 as the price including the sales tax , what is the marked price?
(a)Rs.630
(b)Rs 700
(c)780
(d) none