Computer Science EngineeringVery hard

An int a[10][20] array is stored in row-major order with base address 1000 and 4-byte elements. The address of a[3][5] is

  1. A. 1230
  2. B. 1260
  3. C. 1300
  4. D. 1380

Correct answer: B. 1260

Address = 1000 + (3*20 + 5) * 4 = 1000 + 260 = 1260.

More Theory of Computation, Compilers & Digital Logic (ISRO CS) questions

Exams that ask this topic