+ 2
what is different vector between array??
3 Answers
+ 1
When declaring an array you assign a fixed size, a vector can always get more elements.
0
array memory I static, vector is dynamic
0
arrays are like a vending machine. vectors on the other hand is like a fully automated sushi bar, the ones were sushie rolls around on a track.