If a vector named numbers has 20 elements in it, what is the result of executing the following statement?
Numbers.resize10) ;
A) no change
B) the first 10 elements are removed
C) the last 10 elements are removed
D) this causes a run-time error
Correct Answer:
Verified
Q59: What is the difference between strcmp and
Q60: Given the following declarations, which of the
Q61: What is the value of numbers.size) after
Q62: Given the following code, what is the
Q63: What is the value of numbers.size) after
Q64: In a vector, which of the following
Q65: If the capacity of a vector named
Q67: Which of the following are correct statements
Q68: What is the value of numbers.capacity) after
Q69: When a vector is assigned to another
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