Answers for "initialize vector of vectors to 0's"

C++
-1

c++ create vector of size

// create a vector with 20 integer elements
std::vector<int> arr(20);

for(int x = 0; x < 20; ++x)
   arr[x] = x;
Posted by: Guest on July-15-2020

Code answers related to "initialize vector of vectors to 0's"

Browse Popular Code Answers by Language