07-27-2023, 09:25 AM
I had a language-agnostic discussion with someone in the C++ chat and [he said](
But from what I learned, a multidimensional array is nothing more than an array of other arrays that all have the same size. In particular he is saying
> Well, they kind of are in C, where you simulate multiple dimensions with nested arrays
but that’s only because C doesn’t actually support multiple dimension arrays
Can someone please explain what the canonical computer-science definition of "multiple dimension arrays" is and why C (or the abstract definition "array of arrays") does not fit that definition?
[To see links please register here]
) that arrays of arrays and multidimensional arrays are two things.But from what I learned, a multidimensional array is nothing more than an array of other arrays that all have the same size. In particular he is saying
> Well, they kind of are in C, where you simulate multiple dimensions with nested arrays
but that’s only because C doesn’t actually support multiple dimension arrays
Can someone please explain what the canonical computer-science definition of "multiple dimension arrays" is and why C (or the abstract definition "array of arrays") does not fit that definition?