How To Create Vector Inside Vecotor In C

[Solved] How To Create Vector Inside Vecotor In C | Vb - Code Explorer | yomemimo.com
Question : how to create vector inside vecotor in c++

Answered by : ugly-unicorn-r6s6jzt608qr

vector<vector<int>> vec{ { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9, 4 } };
where vec is the vector of vectors with different number of elements in different rows

Source : https://www.geeksforgeeks.org/vector-of-vectors-in-c-stl-with-examples/ | Last Update : Sun, 25 Sep 22

Answers related to how to create vector inside vecotor in c

Code Explorer Popular Question For Vb