asked 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.

asked
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.

answered
User Rodders
by
8.5k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.