Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 4: Pointers (10 pts) Complete the table below (i.e. fill in the memory map) to show the state of memory after the following C
Question 4: Pointers (10 pts) Complete the table below (i.e. fill in the memory map) to show the state of memory after the following C fragment has been executed. Assume the TM4C123 platform, and all variables are in the stack (and thus the storage is allocated from high address to low address). Remember the TM4C123 is a little endian architecture (i.e. least significant byte of a variable is stored in the lowest address) Be careful with this question. typedef struct coord Address Variable Name Value 0xFFFF FFFF 0xFFFF FFFE 0xFFFF FFFD 0xFFFF FFFC 0xFFFF FFFB 0xFFFF FFFA 0xFFFF FFF9 0xFFFF FFF8 0xFFFF FFF7 char x; char yi ) coord t; coord ptr coord t *coord ptr; int *num ptr; int **p-ptr &num-ptr; char a 0x07; coord t my_coord[2]; int num array [2]=(1,6); num ptr int main () coord-ptr = my-coord; | 0xFFFF FFF6 num ptr = num array; my-coord [1] ,x = 0x22; coord_ptr+t; coord-ptr->y = 0x55; num ptr = num ptr +2; *numptr = 0x5042; pptr++; p ptr 0xFFFF FFF5 0xFFFF FFF4 0xFFFF FFF2my coord 1 0xFFFF FFF 1 | my coord11.x 0xFFFF FFF0my coord[O 0xFFFF FFEF|my coord[Ol.x 0xFFFF FFEE 0xFFFF FFED 0xFFFF FFEmaay 0xFFFFFFEB 0xFFFF FFEA 0xFFFF FFE9 - num_array[1] - num _array[0] 0xFFFFFFE7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started