Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. [6 points] Consider the following portion of memory. Each table cell is a memory location, which contains a single byte, with values shown in

image text in transcribed

4. [6 points] Consider the following portion of memory. Each table cell is a memory location, which contains a single byte, with values shown in hex, and the address of the leftmost byte on each row is shown to the left of the row. In this representation of memory, addresses increase as we move to the right and down in the table. (a) [1 point] What are the contents of memory location 036ca22b89c in binary? (b) [1 point] What are the contents of memory location 036ca22b8aa in binary? For each of the following code snippets, which include print f statements, write down what would be printed out. In each part, assume that p is a pointer of type void * that has the value 036ca22b898. (c) [1 point ] int a=( int )p; printf ("ax,(a+4)); Output: ? (d) [1 point] charb=(char)p;printf("cn,(b+9)); Output: ? (e) [1 point ] char c=( char )p; printf ("sn,c); Output: ? (f) [1 point ] long d=( long )p; printf (" " 1x",(d+1)); Output

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 Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions