Question: 1. Which capabilities does a vector provide that a plain array does not? Check all that are true. Easy insertion of items in the middle

 1. Which capabilities does a vector provide that a plain array

1. Which capabilities does a vector provide that a plain array does not? Check all that are true. Easy insertion of items in the middle Tracks its own size OOOO Easy removal of items Easy copying via assignment operator 2. Some of these statements are true about memory on the stack, others about memory on the heap. Check the ones that are true about memory on the stack. the amount of storage space available here is generally much smaller things are placed there with the keyword new memory here is automatically freed on function exit the operating system manages it 3. Which of the following cause a memory leak? Check all that do: int* pValue = new int (10); pValue = nullptr; int* pvalue = new int (10); int* pValue2 = pValue; delete pValue2; int pvalue new int (35); pValue = new int (23); delete pValue; int* pValue = new int (10); delete pValue

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!