vector <int> answer(2); | Sololearn: Learn to code for FREE!


vector <int> answer(2);

What is mean of answer(2) here!


10/27/2020 2:10:44 AM


4 Answers

New Answer


no, it says create a vector of type int with a name answer and give initial size 2.


initial size/count of vector answer is 2.


Thank you 🤗 Finally I am understand...


is it is shortend of vector <int> answer (0),vector <int> answer (1);