AlphaModder
AlphaModder

Reputation: 3386

Array dimension terminology

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.

Upvotes: 0

Views: 60

Answers (1)

Alexander Polyankin
Alexander Polyankin

Reputation: 1887

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

Upvotes: 2

Related Questions