(Solved):Assume that the code of a linked list is in the usual info – link form with the info of type int. (list and ptr are pointers of type nodeType.) The following code creates a linked list: ptr = new n… View Answer…

 

Question

Assume that the code of a linked list is in the usual info – link form with the info of type int. (list and ptr are pointers of type nodeType.) The following code creates a linked list:

ptr = new nodeType;

ptr -> into = 16;

list = new nodeType;

list -> info = 25;

list -> link = ptr;

ptr = new nodeType;

ptr -> info = 12;

ptr -> link = mullptr;

list -> link -> link

Scroll to top