Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
37.6k views
in Computer by (48.9k points)
closed by

A matrix B[10][7] is stored in the memory with each element requiring 2 bytes of storage. If the base address at B [x] [1] is 1012 and the address at B |7][3] is 1060, determine the value of ‘x’ where the matrix is stored in Column Major wise.

1 Answer

+1 vote
by (49.9k points)
selected by
 
Best answer

Given 

i = 10, j = 7, w = 2, B = 1012 

r = 10, w = ? 

Add [i][j] = 1060 

Colomn wise 

Add [i][i] = B + [(J – Lc) + (I – Lr)] 

⇒ 1060 = 1012 + [(3 – 1) * 10 + (7 – x)] * 2 

⇒ 1060 – 1012 = 2 [(7 – x) + 20] 

⇒ 48 = 2[(7 – x) + 20] 

⇒ 7 – x = 4 

⇒ x = 7 – 4 = 3

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...