ISRO Computer Science (CSE) 2009 - Question 29

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2009

A one dimensional array A has indices 1 ... 75. Each element is a string and takes up three memory words. The array is stored location 1120 decimal. The starting address of A[49] is

  • A. 1267
  • B. 1164
  • C. 1264
  • D. 1169

Answer: C. 1264

Explanation: Addr(A[i]) = Base + (i - Lower) * Size. Addr = 1120 + (49 - 1) * 3 = 1120 + 144 = 1264.

| | All questions of ISRO Computer Science (CSE) 2009