Answers for "What do you think the size of the vector refers to in c++?"

C++
-1

declare vector of size n in c++

#include <vector>

auto n = 20
// create a vector with n=20 integer elements
std::vector<int> arr(n);
Posted by: Guest on September-13-2020

Code answers related to "What do you think the size of the vector refers to in c++?"

Browse Popular Code Answers by Language