Solved

What Does the Following Statement Do

Question 55

Multiple Choice

What does the following statement do?
Vector<int> v(10, 2) ;


A) It creates a vector object and initializes the first two elements with the values 10 and 2.
B) It creates a vector object with a starting size of 2 and initializes the first element with the value 10.
C) It creates a vector object with a starting size of 10 and initializes the first element with the value 2.
D) It creates a vector object with a starting size of 10 and initializes all the elements with the value 2.

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents