Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago