question

can you tell me if these are true

-an array is a list in which each element is accessed using a different identifier

-there are three ways to declare a vector.

-if you attempt to manually store data in an empty vector, the vector will re-size to accommodate the data.

I couldn't find the answers to these so if you could help me by telling me if these are true or not it would be great, and so I can know how to answer the questions they're a part of.
Last edited on
1) http://cplusplus.com/doc/tutorial/arrays/
2) As far as I know there is only one way to declare anything.
3) http://cplusplus.com/reference/vector/vector/push_back/
closed account (3CXz8vqX)
1
2
3
4
5
6
int array[5];

int access = 0; 

cout << array[access];
cout << array[access+1];
Topic archived. No new replies allowed.