adplus-dvertising
frame-decoration

Question

If row-major order is used, how is the following matrix stored in memory?
a b c

d e f

g h i

a.

ihgfedcba

b.

abcdefghi

c.

cfibehadg

d.

adgbehcfi

Answer: (b).abcdefghi

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If row-major order is used, how is the following matrix stored in memory? a b c d e f g h i