Question: C++ Question 1 (a) What is fragmentation? Briefly explain what it is and how we address it. 4 marks] (b) Explain the role of the

C++
Question 1 (a) What is fragmentation? Briefly explain what it is and how we address it. 4 marks] (b) Explain the role of the stack and the heap, using an example of call- ing a function that then allocates memory for 100 integers to a local pointer variable. You may use a diagram if you wish. 6 marks] Total for Question 1: 10 marks)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
