in Compiler Design
515 views
0 votes
0 votes

 An integer array $A[i, j]$ has index $i$ ranging from $1$ to $10$ and index $j$ ranging from $1$ to $20$. Integers take $4$ bytes each. Suppose array $A$ is stored starting at byte $0$. Find the location of: 

  1. $A[4,5]$
  2. $A[10,8]$
  3. $A[3,17]$
in Compiler Design
515 views

1 Answer

0 votes
0 votes
In this question we have asked the location of array elements. So we have to find A[4,5] so Starting location of this element is 0+((4-1)*20 + 4)*4 which is equal to 256.

Related questions