Consider the following C++ statements. (The class unorderedLinkedList is as defi
ID: 3658919 • Letter: C
Question
Consider the following C++ statements. (The class unorderedLinkedList is as defined in this reading module.) unorderedLinkedList list; list.insertFirst(38); list.insertFirst(42); list.insertLast(55); list.insertFirst(60); list.insertLast(18); list.insertLast(35); list.insertFirst(66); list.deleteNode(60); list.insertFirst(93); list.deleteNode(42); list.deleteNode(12); List.print(); cout<<endl What is the output of this program segment? Suppose the input is: 45 35 12 83 40 23 11 98 64 120 16 -999Explanation / Answer
OUTPUT: 93 66 38 55 18 35