Computing.Net > Forums > Programming > Memory Process.of Doble Dimension Array

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Memory Process.of Doble Dimension Array

Reply to Message Icon

Name: Developer
Date: March 7, 2002 at 11:08:00 Pacific
Comment:

Hi All!

I have a question about D.D.Array.Not about its front end structure but offcurse about its back end proccessing. For Example
int arr[2][3];
will declare the array of 2 rows n 3 colunms.But on the memory side it doesnt defines any colunms but rows n block within rows? if true then why this happens?and what is the full story behind this?
Plz explain it ...its urgent...

regards...



Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: May 28, 2002 at 02:41:51 Pacific
Reply:

Reply may be a bit late since I only found out about this site on 26 May.

int a[2];

defines a[0], a[1];

int a[2][3];

defines a[0][0], a[0][1], a[0][2],
a[1][0], a[1][1], a[1][2],

This is because int a[2][3] can be read as

struct {
int b[3];
} a[2];

This would not be stored as a[0].b[0] followed by a[1].b[0] because the compiler will keep all the bs together.


0
Reply to Message Icon

Related Posts

See More


un-hiding access tables MS Access - Images - Gett...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Memory Process.of Doble Dimension Array

Array Dimension www.computing.net/answers/programming/array-dimension/18318.html

assigning multi-dimension arrays www.computing.net/answers/programming/assigning-multidimension-arrays/6333.html

internal structudre of Array in C++ www.computing.net/answers/programming/internal-structudre-of-array-in-c/939.html