Vectors and Arrays in C++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Vectors and Arrays in C++?

as far as i have seen they are pretty much the same. when do you use a array and when a vector, and what are the pros ans cons

20th May 2019, 7:10 AM
Cat Sauce
Cat Sauce - avatar
2 Answers
0
Jay Matthews whag does add() do?
20th May 2019, 7:31 AM
Cat Sauce
Cat Sauce - avatar
0
~ swim ~ does that mean you dont have to specify the elements of the vector?
20th May 2019, 9:06 AM
Cat Sauce
Cat Sauce - avatar