Possible Duplicate:
Advantages of using arrays instead of std::vector?
What are the main advantages/disadvantages of array and vector in C++? I usually find that vectors are easier to use due to their dynamic nature but sometimes it seems like arrays are faster with less overhead. Are there any other significant advantages? I usually am not sure when to use one over the other, depending.