c++ computer architecture and memory What is fragmentation? Briefly explain what it is and how we address it. Explain the role of the stack and the heap, using an example of calling a function that then allocates memory for 100 integers to a local pointer variable. You may use a diagram if you wish. Solution A)Fragmentation is an phenomenon in which using of storage capacity in efficiently There are three types of fragmentation 1.internal fragmentation 2.external fragmentation 3.data fragmentation Addressing is in the form offsets,data grand B)stack is an one of the data structure in which push and pop operations are done In this first all the elements are push in to stack and then popping out the elementsI Is done pop()function Ex:for example I have 100integer variable iam allocating it to stack data structure main() { Int *elements[]; //declaring pointer variabl Stackelements(); Void stackelements() { For(I=0;I<=100;i±+) Elements[i]=n } .