alcabo <al****@discussions.microsoft.com> wrote:
Now I don't know what the jagged arrays are... What do you understand by
jagged arrays?
Arrays of arrays.
I think I'm talking about rectangular arrays having a compact storage.
For example,
int [] myArray = new int[10];
is stored in C as
XXXXXXXXXX
That's just a single-dimensional array.
and
int [,] myArray = new int[3, 5];
is stored in C as
XXXXX
XXXXX
XXXXX
That's a rectangular array.
where X represents the amount of memory to store an integer value.
I'd be very graceful if you could link me to references about these
issues
The ECMA CLI specification gives the answer on this one:
<quote>
Array elements shall be laid out within the array object in row-major
order, i.e. the elements associated with the rightmost array dimension
shall be laid out contiguously from lowest to highest index. The actual
storage allocated for each array element may include platform-specific
padding.
</quote>
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too