(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 nod… 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 node Type;

ptr –> info = 16;

list = new node Type;

list –> info = 25;

list –> link = ptr;

ptr = new node Type;

ptr –> info = 12;

ptr –> link = nullptr;

list –> link –>

Scroll to top