What does the following statement do? vector<int> v(10) ;
A) It creates a vector object and initializes all of 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 store only values of 10 or less.
Correct Answer:
Verified
Q21: The _ is automatically appended to a
Q30: What is the last legal subscript that
Q32: What will the following code display? int
Q33: A(n) _ can be used to specify
Q34: What will the following code display? int
Q36: How many elements does the following array
Q36: An array of string objects that will
Q39: What will the following code display?
Q46: This vector function returns the number of
Q48: A two-dimensional array of characters can contain
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents