Multiple Choice
Which statement correctly uses C++11 to initalize a vector of ints named n with the values 10 and 20?
A) vector n<int>(10, 20) ;
B) vector<int> n = {10, 20};
C) vector<int> n {10, 20};
D) int vector n ({10}, {20}) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: The individual values contained in an array
Q5: In C++11 you cannot use a range-based
Q6: If you leave out the size declarator
Q7: This vector function is used to insert
Q8: An individual array element can be processed
Q10: A vector object automatically expands in size
Q11: A two-dimensional array can have elements of
Q12: The following statement is a valid C++
Q13: What is the last legal subscript that
Q14: An array initialization must be all on