# what direction the array is growing ?? up, down, right or left?

Just a poll: programmers can be divided by the way they visualize an array. Answer and find out where you belong to.
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
What do you mean growing.  In most languages the array is static and doesn't grow once declared?

If you mean when I fill the array as in
arr[1] := 1;
arr[2] := 2;
...
arr[Last] := LastValue;

Depending on  the application I may visualize it as being
Up - A stack
Right - a Queue
Down - Lists of information like in a grade book
Left - I don't think I have ever visualized it that direction.

mlmcc
Commented:
Don't forget also: forward, back.

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
if i'm dealing with a multidimensional array, i usually visualize up, then to the left, and then away from me. Once i get to 4 dimensions (never used that in a practical application though), i cant visualize it. i dont think any could, or can you?
Commented:
Yes a 4-D array makes excellent sense in weather prediction.

Latitude, Longitude, Altitude, and Time

From my understanding weather models are really much more complex.

mlmcc
Commented:
from left to right if it is 1D
Commented:
Any particular reason you selected that as the answer?

mlmcc
Author Commented:
sorry, just though i could mark more than one answer as accepted
2mlmcc: 4D array example is great, never came accross 4D arrays before!
Commented:
I just happen to know some of the weather programmers.  Actually I believ their arrays have more than 4 dimensions but I have no idea what the other dimensions are.

I taught several of them and we discussed their programs when we did the chapter on arrays.  I believe one of the other dimensions is type of observation (balloon, satellite, etc).

For future reference - To accept more than one answer first click SPLIT POINTS (it appears after all comments and before the new comment block.

mlmcc
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.