CPP All : 2D Array Memory Addressing

Exam Paper Problems

#### 2-D Array Element Address Calculation #5281

( As In Exam - CBSE12A-2018 )

Let us assume Data[20][15] is a two dimensional array, which is stored in the

Let us assume Data[20][15] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 2 bytes, find the address of the element Data[10][5], if the element Data[15][10] is stored at the memory location 15000.

#### Finding relative address in 2D Array #5661

( As In Exam - CBSE12A-2016 )

R[10][50] is a two dimensional array, which is stored in the memory along the

R[10][50] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 8 bytes, find the address of the element R[5][15], if the element R[8][10] is stored at the memory location 45000.

#### 2-D Array Element Address Calculation #5772

( As In Exam - CBSE12A-2017 )

ARR[15][20] is a two-dimensional array, which is stored in the memory along t

ARR[15][20] is a two-dimensional array, which is stored in the memory along the row with each of its elements occupying 4 bytes. Find the address of the element ARR[5][15], if the element ARR[10][5] is stored at the memory location 35000.

#### 2-D Array Element Address Calculation #5873

( As In Exam - CBSE12D-2015 )

A two dimensional array P[20] [50] is stored in the memory along the row wit

A two dimensional array P[20] [50] is stored in the memory along the row with each of its element occupying 4 bytes, find the address of the element P[10] [30],if the element P[5] [5] is stored at the memory location 15000.

#### 2-D Array Element Address Calculation #5959

( As In Exam - CBSE12A-2015 )

A two dimensional array ARR[50][20] is stored in the memory along the row wi

A two dimensional array ARR[50][20] is stored in the memory along the row with each of its elements occupying 4 bytes. Find the address of the element ARR[30][10], if the element ARR[10] [5] is stored at the memory location 15000.

#### 2-D Array Element Address Calculation #6039

( As In Exam - CBSE12D-2017 )

T[25][30] is a two dimensional array, which is stored in the memory along the

T[25][30] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 2 bytes, find the address of the element T[10][15], if the element T[5][10] is stored at the memory location 25000.

#### Finding relative address in 2D Array #6167

( As In Exam - CBSE12D-2016 )

T[20][50] is a two dimensional array, which is stored in the memory along the

T[20][50] is a two dimensional array, which is stored in the memory along the row with each of its element occupying 4 bytes, find the address of the element T[15][5], if the element T[10][8] is stored at the memory location 52000.

Exam Paper Problems:7
×