Sail E0 Webinar
Question
If row-major order is used, how is the following matrix stored in memory?a b cd e fg h i
Options:
A .  ihgfedcba
B .  abcdefghi
C .  cfibehadg
D .  adgbehcfi
Answer: Option B


It starts with the first element and continues in the same row until the end of row is reached and then proceeds with the next row. C follows row-major order.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers