Check out example codes for "c++ array vs vector". It will help you in understanding the concepts better.

Code Example 1

//arrays have fixed size, but vectors don't

Learn ReactJs, React Native from akashmittal.com