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];

 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

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

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!