Question: QUESTION 8 There is a push_back() function for vectors, but no push_front() function. Why do you think that is? a. It is not an efficient

 QUESTION 8 There is a "push_back()" function for vectors, but no

QUESTION 8 There is a "push_back()" function for vectors, but no "push_front()" function. Why do you think that is? a. It is not an efficient operation for vectors and with push_back(), there is no need for a push_fronto) b. Because of push back(), there is no need for push_fronto) c. It is not an efficient operation for vectors d. It was not put in the original version of the API. Adding it in now would break existing code. QUESTION 9 If the following expressions were both legal, which other expressions should be legal? stack names; auto iter = names.begin(); a. iter, names.end() b.iter.begin(), names.end() C. ++iter, names d. iter, names++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!