Assume that the node of a linked list is the usual info-link form with the info of type int. (list..
Assume that the node of a linked list is the usual info-link form with the info of type int. (list and ptr are pointers of type nodeType.) The following code creates alinked list.
ptr = new nodeType;
ptr-> info = 16;
list = new nodeType;
list -> info = 25;
list -> link = ptr;
ptr = new nodeType;
ptr -> info = 12;
ptr -> link = NULL;
list -> link -> link = pointer;
Use the linked list created by this code to answer. Declare additional pointers if you need them.
Write a C++ code that creates and inserts a node with info 58 before the node with info 25. Does this require you to change the value of the pointer that was pointingto the first node of the linked list?
Also, write a C++ code that deletes the node with info 25. Does this require you to change the value of the pointer that was pointing to the first node of the likedlist?