By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,699 Members | 1,402 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,699 IT Pros & Developers. It's quick & easy.

2D Array memory storage configuration?

P: n/a

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?


--
mark
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"mark" <ma**@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...

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?


--
mark

Nov 21 '05 #2

P: n/a
Thank you for the proper terms.

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

"Brian Henry" wrote:
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

"mark" <ma**@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...

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?


--
mark


Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.