What's the difference between arrays of arrays and multidimensional arrays?

前端 未结 5 765
无人及你
无人及你 2020-12-20 17:34

I had a language-agnostic discussion with someone in the C++ chat and he said that arrays of arrays and multidimensional arrays are two things.

But from what I lear

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-20 18:01

    I would expect multidimensional arrays to offer operations such as "Give me the number of dimensions" or "Give me a certain column" or "Give me a certain sub-view". C arrays don't offer these operations.

提交回复
热议问题