N0698311 / SDI

Software Design Implementation
0 stars 0 forks source link

Linked List C++ Statements #24

Open N0698311 opened 6 years ago

N0698311 commented 6 years ago

Write C++ statements to do the following: a. Write C++ code so that first traverses the entire list. b. Create the node info 17 and insert after current. c. Delete the last node of the list and deallocate the memory occupied by this node. After deleting the node make last point to the last node of the list and the link of the last node must be nullptr. d. Delete the node with info 92. Also, deallocate the memory occupied by this node. e. Write a C++ code to move the node with info 46 after current by adjusting the links of nodes in the linked list.