Question: 5 . list - > 1 9 - > 3 2 - > 2 3 - > 1 6 - > 4 3 - >

5.
list ->19->32->23->16->43->87->27->41-> NULL
A points to the node containing 32.
B points to the node containing 87.
a. What is the output of list->info if it is printed ?
b. What is the output of A->info if it is printed ?
c. What is the output of B->link->info if it is printed ?
d. Write C++ statements to make A point to the node containing info 23.
e. Write C++ statements to make B point to the last node in the list.
f. Write C++ statements to make to set the value of the node containing 27 to 35.
g. Write C++ statements to make to create and insert the node with info 10 after the node pointed to by A.
h. Write C++ statements to make to delete the node with info 23. Also, deallocate the memory occupied by this node.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!