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
Explanation: It starts with the first element and continues in the same row until the end of the row is reached and then proceeds with the next row. C follows row-major order.