title: std::vector versus std::array in C++
body: <p>What are the difference between a <code>std::vector</code> and an <code>std::array</code> in C++? When should one be preferred over another? What are the pros and cons of each? All my textbook does is list how they are the same.</p>