The address of tenth element in an array is calculated using
Answers
Answered by
0
Answer: dont ask silly qquestions
Explanation:
Answered by
0
Answer:
Explanation:
Solved Questions based on Array Implementation
ISC Year 2020: A matrix B[10][20] is stored in the memory with each element requiring 2 bytes of storage. If the base address at B[2][1] is 2140, find the address of B[5][4] when the matrix is stored in Column Major Wise.
Address of [I, J]th element in column-major = B + W[R(J – Lc) + (I – Lr)]
= 2140 + 2[10(4 – 1) + (5 – 2)]
= 2140 + 2[10 × 3 + 3]
= 2140 + 2[30 + 3]
= 2140 + 2[33]
= 2140 + 66
= 2206
Similar questions
Math,
1 month ago
Social Sciences,
1 month ago
English,
1 month ago
Social Sciences,
2 months ago
Geography,
2 months ago
Math,
10 months ago
Math,
10 months ago
English,
10 months ago