Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DO PART B ONLY PLEASE Task 3: (10 points) Given: A new node structure (intended to be used to create a list of lists) is
DO PART B ONLY PLEASE
Task 3: (10 points) Given: A new node structure (intended to be used to create a list of lists) is defined in the table below (using struct node): struct node t struct soll nede int item: struct node * next; link Ld // NOTE: Ld must be represented with a dummy starting node. struct sollnode * next: In your drawings, show all the data as done in class (including the list nodes, of type struct node). Use boxes for all member variables and write their value inside the box and their name outside the box. a) (7 points) Draw two nodes (of type struct sailnode) that point to each other. For one of them Ld should be empty (but not NULL) and for the other one Ld should be: 30-15- 18. Use the representation with a DUMMY node for any normal list, Ld, part of nodes of type struct cailnode b) (3 points) Assume that an int is stored in 4 Bytes and a memory address is 8 Bytes. How much space will the above two nodes (and the data that they reference) occupy? That is, give the total space needed to store in memory what you drew above. SHOW YOUR WORKStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started