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

Q & ACategory: Data StructureIf row-major order is used, how is the following matrix stored in memory?
Admin Staff asked 4 years ago

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

1 Answers
Admin Staff answered 4 years ago

b) abcdefghi