Problem 3 20 Points Data Structures Memory Problem Refers Data Structure Shown One Similar Q43822955
please, explain your workProblem 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 Show transcribed image text 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
Expert Answer
Answer to Problem 3 (20 points): Data Structures in Memory This problem refers to the data structure shown below, one of which is …
OR