Quote:
Originally Posted by wireties
How members of an array are stored and accessed is a function of the programming language. It is not something one should worry or argue about since the language will reference and de-reference everything for you. "Row" and "Column" mean nothing to the compiler. Notation has nothing to do with the physical location since memory is laid out so one accesses word-sized elements in sequence. In C and C++ matrices and arrays are really done with pointer arithmetic - google it.
|
I disagree. You should always know how your data structures work. If you do not know how they are stored and accessed, you won't be able to determine if it is the best data structure for you (big O, etc.). There is a difference between a linked list, double linked list, array, matrix, etc. that you should know in order to use them correctly.