Raw arrays
Raw arrays
An array is a sequence of objects of the same type that occupy a contiguous area of memory.
Traditional C-style arrays, or Raw Arrays, are the source of many bugs, but are still common, especially in older code bases.
In modern C++, we strongly recommend using std::vector or std::array instead of C-style arrays.
1 2 3 4 5 6 | |
1 2 3 | |
1 2 3 | |
1 | |
1 2 3 | |
1 2 3 4 | |
1 2 3 4 | |
1 2 3 | |
1 2 | |