188k views
2 votes
What does the following statement do?

vector v(10);
a. It creates a vector object and initializes all its elements to the value 10.
b. It creates a vector object with a starting size of 10.
c. It creates a vector object and initializes the first element with the value 10.
d. It creates a vector object that can only store values of 10 or less.

User Belial
by
7.6k points

1 Answer

3 votes

Answer: B : It creates a vector object with a starting size of 10

Explanation:

Found this on another site. Hope it helps let me know if its right.

User Rodders
by
8.5k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.