Question: Write out the memory map for the following coed, providing all the values at the end of the execution. How many total bytes does this

Write out the memory map for the following coed, providing all the values at the end of the execution.

How many total bytes does this code declare for variables?

#include

main()

{

double testd;

int testi;

struct frog {

double *x,y;

};

struct frog turtle,*apple,tv[3];

testi=2;

apple = &turtle;

apple ->x=&testd;

*(turtle.x)=7.3;

(*apple) .y=3.6;

turtle.y=1.5;

for (testi=0; testi<3; testi++)

tv[testi] .x=&(tv[(testi+1)%3].y);

*(tv[1].x)=6.4;

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!