retagged by
1,461 views
3 votes
3 votes

Given an array $A[-1:6,-2:10] $.  The base address of array is $1000$. If every elements take $4$ Bytes for storage . Then compute  the address of element $A[5,7]$. Assume row major storage.

  1. $1245$
  2. $1348$
  3. $2434$
  4. $1384$
retagged by

2 Answers

3 votes
3 votes
Assuming row wise storage

Address of  A[5,7]. = 1000+( 6* 13 + 9) *4

                               = 1000+(348)

                               = 1348

Related questions

7 votes
7 votes
1 answer
1
6 votes
6 votes
1 answer
3