Vectors in C++ | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Vectors in C++

Can someone please explain me how can I find the size of vector passed to a function if function declaration is given by function(const vector<int> &v); kindly explain calling v.size() is not working for me. Thanks in advance.

29th Jul 2017, 10:10 PM
Lovish Arora
Lovish Arora - avatar
1 ответ
+ 2
What do you mean it's not working? It should
29th Jul 2017, 10:45 PM
aklex
aklex - avatar