Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please, explain your work Problem 3 (20 points): Data Structures in Memory This problem refers to the data structure shown below, one of which is

please, explain your work image text in transcribed
Problem 3 (20 points): Data Structures in Memory This problem refers to the data structure shown below, one of which is similar (NOT identical) to a structure used in Problem 2. Shown below on the left is C code defining these data structures along with the variables flt, ptr, lib, and step. Shown on the right is the LC-3 memory at runtime. C code: LC-3 Memory struct library_t chare name: book_t" books; book to borrowed; library next; struct bookt char title: charauthor: book_t next: float float library char. Address x4001 x4002 x4003 x4004 x4005 x4006 x4007 x4008 x4009 400A x400B x400C x400D X400E x400F X4010 x4011 x4012 x4013 Data Comments x5165 x 400D x0000 XA792 x400A x4915 x7492 x004F x0000 x4008 x8217 x4001 x0053 x004C x0000 XABCD flt x400F ptr x4004 lib x4002 strp ptr lib; Strp: Complete the table below by indicating the value and C type for cach expression in the left column. If the expression is a structure, provide the start and end address of the structure (for example, Mem[start_addr:end_addr]) instead of a value. The first two rows of the table have been completed for you. Value XABCD x4010 Ctype float float Expression flt Gelt ptr *ptr Gptr lib-books **strp lib-books->next 16(lib-books->next->next) (lib-books->name) (lib->borrowed) lib-1

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_2

Step: 3

blur-text-image_3

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

Students also viewed these Databases questions

Question

3. Explain the forces that influence how people handle conflict

Answered: 1 week ago