Question PRG-CPP-0078
HardWhat is the difference between std::array and std::vector?
- A.
They are identical
- B.
std::array is slower
- C.
std::vector can't hold ints
- D.
std::array has a fixed size known at compile time; std::vector can grow at run time
Sign up free to see the answer and a step-by-step explanation.