Question: Question 2 Pointers and Memory Given the following code, answer 2a - 2b. = short num; short list[] {1,2,3,4}; short *my_ptr list; *my_ptr + list[2];

![- 2b. = short num; short list[] {1,2,3,4}; short *my_ptr list; *my_ptr](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f51d220b11d_80966f51d21a18fa.jpg)
![+ list[2]; num Question 2a After the code executes, what is the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f51d22c2e67_81066f51d2245b7c.jpg)
Question 2 Pointers and Memory Given the following code, answer 2a - 2b. = short num; short list[] {1,2,3,4}; short *my_ptr list; *my_ptr + list[2]; num Question 2a After the code executes, what is the value of variable num in decimal? Question 2b If the address of variable list is 0x20000100, what are the values at each of the following memory addresses? Ox20000100 [Choose] Ox02 Ox00 Ox20000101 Ox04 Ox01 Ox20 Ox03 Ox20000102 [Choose ] Ox20000103 [ Choose ] Ox20000104 [Choose ] Ox20000105 [Choose ] Ox20000106 [Choose ] Ox20000107 [Choose ]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
