Question: Q2 Pointer program output - 2 5 Points What is the output of the following program? Using a pointer diagram show the evolution of all

Q2 Pointer program output - 2 5 Points What is the output of the following program? Using a pointer diagram show the evolution of all data objects in memory, clearly marking elements on the run-time stack and on the heap. Mark the size of all data objects. Assume the code is embedded in a correct and complete program. To report your diagram, upload a picture of your pointer diagram with the name q2.jpg or q2.pdf to the same git repo you made in Q1. Provide the link to your gitrepo here. int array_size = 4, *a; a = new int[array_size]; int *p = a; for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
