Ad Code

Difference between Row Major and Column Major

What is the difference between Row Major and Column Major. Can you explain in detail with example...



Row major and Column major are data organizational techniques used in programming languages. More, specifically, these are methods for for storing multidimensional arrays in linear memory. In row-major storage, a multidimensional array in linear memory is accessed such that rows are stored one after the other. Where in Column major storage, a multidimensional array in linear memory is accessed such that columns are stored one after the other. Row major is used in C where Column major is technique of scientific languages like FORTRAN.
For more details and examples, visit the following link.
http://webster.cs.ucr.edu/AoA/Windows/HTML/Arraysa2.html
Reactions

Post a Comment

1 Comments

Please add nice comments or answer ....