Zero Then Ten
std::vector<int> v;
v.reserve(10);
std::cout << v.size() << " " << v.capacity() << "\n";
v.resize(3);
std::cout << v.size() << " " << v[0] << "\n";
Assuming a typical implementation, what is printed?
Sign in to answer questions and track your progress
Sign In