Show what is produced by the following C++ code. Assume the node is in the usual info-link form with the info of the type int. (list, trail, and current are pointers of type nodeType.)
list = new nodeType;
list->info = 28;
trail = new nodeType;
trail->info = 33;
trail->link = list;
list->link = NULL;
current = new nodeType;
current->info = 62;
trail->link = current;
current->link = list;
list = trail;
current = list->link;
trail = current->link;
cout << list->info << " " << current->info << " " << trail->info << endl;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.