vector <int> answer(2); | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

vector <int> answer(2);

What is mean of answer(2) here!

27th Oct 2020, 2:10 AM
æshrîth.htm
æshrîth.htm - avatar
4 Answers
+ 2
no, it says create a vector of type int with a name answer and give initial size 2.
27th Oct 2020, 2:28 AM
Flash
+ 2
initial size/count of vector answer is 2.
27th Oct 2020, 2:23 AM
Flash
+ 2
Thank you 🤗 Finally I am understand...
28th Oct 2020, 1:31 AM
æshrîth.htm
æshrîth.htm - avatar
+ 1
is it is shortend of vector <int> answer (0),vector <int> answer (1);
27th Oct 2020, 2:25 AM
æshrîth.htm
æshrîth.htm - avatar