this post was submitted on 13 May 2025
1 points (100.0% liked)

C++

2320 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ulterno@programming.dev 0 points 1 year ago

I came from C, but sadly haven't needed using 2 dimensional arrays enough to be able to say something useful.

I tend to use std::array and std::vector anyway.

But definitely no linear initialisation. It's already too hard to remember which pointers the first [] vs second [] refer to.