English

A matrix G[3...7, 2...5] is stored in the memory, with each element requiring 4 bytes of storage. If the address of G[5][4] is 6000, find the base address when the matrix is stored column-major-wise. - Computer Science (Theory)

Advertisements
Advertisements

Question

A matrix G[3...7, 2...5] is stored in the memory, with each element requiring 4 bytes of storage. If the address of G[5][4] is 6000, find the base address when the matrix is stored column-major-wise.

Numerical
Advertisements

Solution

6000 = B + 4 × [(4 − 2) × 5 (5 − 3)]

6000 = B + 4 × [10 + 2]

6000 = B + 48

B = 5952

Base Address = 5952

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×