Can you resize a C++ array after initialization? [duplicate]

C++ arrays are fixed in size.

If you need a “resizable array”, you’ll want to use std::vector instead of an array.

Leave a Comment