What is the difference between std::array and std::vector? When do you use one over other?

Viewed 82658

What is the difference between std::array and std::vector? When do you use one over other?

I have always used and considered std:vector as an C++ way of using C arrays, so what is the difference?

6 Answers
Related