Do arrays have any advantages over vectors?
This is a discussion on arrays and vectors within the C++ Programming forums, part of the General Programming Boards category; Do arrays have any advantages over vectors?...
Do arrays have any advantages over vectors?
Sure - reading/writting/traversing an array is little faster and contains no memory overhead (other than the array contents).
Arrays are fixed in size don't dynamically grow and shrink easily/quickly - this is where vector comes in.
gg