Question: Given the following structure: #define SIZE 8 struct lnode { char str[size]; sruct lnode *next; } And we know that the variable list is the
Given the following structure:
#define SIZE 8 struct lnode { char str[size]; sruct lnode *next; } And we know that the variable list is the start of the list, so we execute the following command in gdb to find the start of the list
( gdb) print list $1 = (struct lnode *)0x6020b0 ( gdb) x/60x 0x602000 0x602000: 0x00000000 0x00000000 0x00000021 0x00000000 0x602010: 0x3f74306e 0x0000000a 0x00000000 0x00000000 0x602020: 0x00000000 0x00000000 0x00000021 0x00000000 0x602030: 0x000a726f 0x00000000 0x00602010 0x00000000 0x602040: 0x00000000 0x00000000 0x00000021 0x00000000 0x602050: 0x0a656874 0x00000000 0x00602070 0x00000000 0x602060: 0x00000000 0x00000000 0x00000021 0x00000000 0x602070: 0x6c306f63 0x00747365 0x00602030 0x00000000 0x602080: 0x00000000 0x00000000 0x00000021 0x00000000 0x602090: 0x36325343 0x00000a49 0x00602050 0x00000000 0x6020a0: 0x00000000 0x00000000 0x00000021 0x00000000 0x6020b0: 0x000a7349 0x00000000 0x00602090 0x00000000 0x6020c0: 0x00000000 0x00000000 0x00020f41 0x00000000 0x6020d0: 0x00000000 0x00000000 0x00000000 0x00000000 0x6020e0: 0x00000000 0x00000000 0x00000000 0x00000000
Draw the linked list and determine the sentence being stored in the linked list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
