Question: Problem 5 (10 points) Assume you have a 16 bit machine with 65536 bytes of memory. Both ints and memory addresses are 2 bytes (16

 Problem 5 (10 points) Assume you have a 16 bit machine

Problem 5 (10 points) Assume you have a 16 bit machine with 65536 bytes of memory. Both ints and memory addresses are 2 bytes (16 bits) long. Assume that variables are placed in memory contiguously in starting at memory address 0x430. Given these assumptions, give the output of the following code, assuming that the %p format specifier prints out a memory address in hexadecimal int x 6; int* px-6x; int y 18; int* py &; printf("starting x 96d, y printf("a) %p ", px); printf("b) %p ", py); px py; printf("c) %d ", *px); printf("d) %p , px); printf("e) %p ", &px); px 17 y- 13 printf("f) %d ", *px); printf("g) %d ", *py); printf(" h) %d ", x); printf(" i) %d ", y); %d ", , y)

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!