Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
5.7k views
in Computer by (49.0k points)
closed by

A matrix A[m] [m] is stored in the memory with each element requiring 4 bytes of storage. If the base address at A[1] [1] is 1500 and the address of A[4][5] is 1608, determine the order of the matrix when it is stored in Column Major Wise.

1 Answer

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

Base Address, B = 1500 

W = 4 Bytes 

i = 4, j = 5, r = 1, c = 1 

Formula for Column Major Wise 

A[4][5] = B + W[m(j – c) + (I – r)] 

1608 = 1500 + 4[m(5 – 1) + (4 – 1)] 

1608 – 1500 = 16m + 12 

16m = 96 

m = 6

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

...