A one dimensional array A has indices 1....75. Each element is a string and…

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 at location 1120 decimal. The starting address of A[49] is

  1. A.

    1267

  2. B.

    1164

  3. C.

    1264

  4. D.

    1169

Attempted by 488 students.

Show answer & explanation

Correct answer: C

To find the starting address of an array element, use the formula: Address = Base_Address + (Index - Lower_Bound) × Element_Size. Here, the base address is 1120, the lower bound is 1, the element size is 3 words, and we want A[49]. Calculation: 1120 + (49 - 1) × 3 = 1120 + 48 × 3 = 1120 + 144 = 1264.

Explore the full course: Isro