Question: Suppose that you declare a bag ( chapter 4 & before section 4 . 4 ) like this: bag exercise; What will happen if you

Suppose that you declare a bag(chapter4 & before section 4.4) like this: bag exercise; What will happen if you try to put 31 items in the bag?
Group of answer choices
The reserve function will increase the capacity to 60.
The insert function will increase the capacity to 60.
The insert function will increase the capacity to 31.
A non-sufficient memory message will be displayed.
The reserve function will increase the capacity to 31.

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!