2D Array memory storage configuration?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How is a 2 dimensional array stored in memory? That is:

for a(i,j)

is the array stored as sequential blocks of i or sequential blocks of j?

Or, does it depend of hardware?
 
you may want to look up the terms "row major" and "column major" on
google... its the technique for storeing arrays in lists as columns or rows
depending on how your OS (or programming language) is configured to handle
them
 
Thank you for the proper terms.

The consensus is the VB stores 2D arrays with column major ordering.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top