Do arrays have any advantages over vectors?
Printable View
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