Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
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