order of dimensions when creating multidimensional array

Viewed 158

new T[7] creates an array of 7 Ts. If we replace T with int[5], we get new int[5][7] which should create an array of 7 arrays of 5 integers. However, it creates an array of 5 arrays of 7 integers instead. Is there any good reason for this? Wouldn't it make more sense if it was the other way around?

2 Answers
Related