Write out the memory map for the following code,providing all values at the end of execution. PLEASEjust help me fill in the value part in the table I created. Alsomake corrections as needed but I need it in this table format. itseasier for me to understand.
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; 24 tv[0].x 25 tv[0].y 26 tv[1].x 27 tv[1].y 28 tv[2].x for (testi=0; testi<3; testi++) tv [testi].x=&(tv [(testi+1)%3].y) 29 tv[2].y *(tv [1] .x)=6.4; 30 18 variables 19 testd 20 testi 21 turtle.x 22 turtle.y 23 turtle.apple (*apple).y=3.6; turtle.y=1.5; address 400 - 407 408-411 412 - 415 416 423 - 424-427 428-431 432 - 439 440 - 443 444 - 451 452 - 455 456-463 value
Write out the memory map for the following code, providing all values at the end of execution. PLEASE just help me fill
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am