Which of the following languages stores 2-D arrays in row-major order?
Fortran
C
MATLAB
R
[ Option B ]
In row-major order, elements of a 2-D array are stored row by row in memory. This means the elements in the first row are stored first, followed by the second row, and so on.
(1) C uses row-major storage → rows stored one after another in memory.
(2) Fortran, MATLAB, R use column-major → columns stored one after another.
Thank you so much for taking the time to read my Computer Science MCQs section carefully. Your support and interest mean a lot, and I truly appreciate you being part of this journey. Stay connected for more insights and updates! If you'd like to explore more tutorials and insights, check out my YouTube channel.
Don’t forget to subscribe and stay connected for future updates.