Solved

What Does the Following Statement Do

Question 40

Multiple Choice

What does the following statement do?
Vector<int> 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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions