Dec 15, 2013 at 5:28pm UTC
Am I right in these two statements?
A(n) vector array is like several arrays of the same type put together..
The C++ has no array subscript checking, which means you can inadvertently store date past the end of an array.
Please check the underlined ones, am I right?
Dec 15, 2013 at 6:41pm UTC
I wouldn't call a vector several arrays or call it a vector array. A vector is a container or are you talking about a multi-dimensional array?
Also with the second statement you can go before the beginning also try -1 or -2 as an offset.
Last edited on Dec 15, 2013 at 6:41pm UTC
Dec 15, 2013 at 6:42pm UTC
then what can it be called other then vector array? :S
Dec 15, 2013 at 6:56pm UTC
Well are you talking about STL container vector std::vector<int > a;
? If yes, it is normally just called a vector. If you are talking about something like int a[3][2];
then a multidimensional array.