Solved

Which Statement Correctly Uses C++11 to Initalize a Vector of Ints

Question 9

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:

verifed

Verified

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

Related Questions