Use app×
QUIZARD
QUIZARD
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
35.2k views
in Computer by (49.9k points)
closed by

AmatrixP[15] [10] is stored with each element requiring 8 bytes of storage. If the base address at P[0] [0] is 1400, determine the address at P[10] [7] when the matrix is stored in Row Major Wise.

1 Answer

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

Row Major Address Formula: M[i] [j] = B(A) + W[(i – Ir)*column + (j – Ic)] 

In the given problem, Address of P[10][[7] is asked. 

1400 is base address, column =10, W = 8 bytes, i = 10, j = 7, Ir = 0 and Ic = 0. 

Address of P[10] [7]: 

= 1400 + 8[(10 – 0)*10 + (7 – 0)] 

= 1400 + 8[100 + 7] 

= 1400 + 8*107 

= 2256

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

...