Question: Consider the linked list and the variable declaration shown below, where nodeType is a struct with two components: info of type int and link of

Consider the linked list and the variable declaration shown below, where nodeType is a struct with two components: info of type int and link of type nodeType. nodeType *list, *first, *current, *last, *temp, *trail, *p,*q; What is the output, if any, of each of the following C++ statements? a. cout current->info; Answer: b. q= temp->link; cout q->info info; Answer: c. cout link->link->info; Answer: d. trail = current->link; trail->link = nullptr; cout trail->info; Answer: e. cout last->link->info; Answer: f. q= current->link->link; cout link->link->info
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
