Array dimension terminology

57 views Asked by At

When talking about an n-dimensional array in C#, are the dimensions left to right, or right to left? That is:

new int[0,1,2,3,4]

or

new int[4,3,2,1,0]

For clarification, I'm talking about how you would describe each index, not how to access arrays.

1

There are 1 answers

2
Alexander Polyankin On BEST ANSWER

It is from left to right, as expected. This maps directly to indexing an array.