Question: Consider the following code in C syntax and assume stack memory allocation for nested scope is used: # include int * x; / / memory

Consider the following code in C syntax and assume stack memory allocation for nested scope is used: # include int *x; //memory m1 int **y; //memory m2 int main(){ x =(int*) malloc(sizeof(int)); //memory m3 y = &x; //memory m4{ int ***z; //memory m5 z =(int ***) malloc (sizeof (int **)); //memory m6*z = y; // Location 1} int** a; //memory m7 a = y; y =(int**) malloc(sizeof(int*)); //memory m8*y =*a; // Location 2 return 0; }1. Draw the box and circle diagram at Location 1.2. The sets of aliases at Location 1 are: 3. Draw the box and circle diagram at Location 2.4. The sets of aliases at Location 2 are:

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!