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

+1

vector <int> answer(2);

What is mean of answer(2) here!

c++

10/27/2020 2:10:44 AM

æshrîth.htm

4 Answers

New Answer

+2

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

+2

initial size/count of vector answer is 2.

+2

Thank you 🤗 Finally I am understand...

+1

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