Multiple Choice
Which statement correctly uses C++ 11 to initialize 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
Q7: This vector function is used to insert
Q8: An individual array element can be processed
Q20: To pass an array as an argument
Q37: The individual values contained in array are
Q38: If you leave out the size declarator
Q39: If you attempt to store data past
Q40: Subscript numbering in C++_.<br>A)can be set at
Q42: An array can easily be stepped through
Q43: Which of the following is a valid
Q55: When writing functions that accept multi-dimensional arrays