Answer : True
Explanation: Vectors can hold, data of the same type and can automatically expand accordingly and change it’s size. The date stored in vectors should be linear.
- The syntax for vector is vector<int>v;
- Mostly this is used in C++ as an alternative to arrays
- If you want to use vector in your program then define it in the header first i.e.
#include <vector>
- Push back is a function, that is used to insert an element into the vector
- Pop back removes the element from the vector
Which language? In Java it would simply be:
int count;
Answer:
NO BUT IT SOUNDS FUN
Explanation:
I PROBABLY HAVE NOT HEARD OF IF BC IM HOMESCHOOLED :D
I’m pretty sure the answer for 1 is B.
And the answer for 2 is True.