Arrays vs Vectors

I have just recently learned arrays. After arrays i learned about vectors , they seem so similar. Should i use vectors or arrays?
Last edited on
You should use std::vector instead of C arrays because:

1) they know their own size
2) can be resized
3) they provide iterators, so that you can easily use them in algorithms

Also, I'd suggest editing your post, and moving it to Beginners.
Topic archived. No new replies allowed.