the form dets-next next being Q4) Consider the linked list shown in the figure below. The nodes are the pointer pointing
Posted: Thu Jun 02, 2022 8:08 am
the form dets-next next being Q4) Consider the linked list shown in the figure below. The nodes are the pointer pointing to the next nodej list, current, temp, trall and last are all pointers pointing to a specific node in the linked tist. Use the figure to answer the following t tions (Apoints) list current a. cout<< current->data; b. current current->next; cout<< current->data; c. while(current !- last) ( --DUH current current->next; cout<<current->data<<""; cout<<endl; } d. current = temp->next; trail = list; temp = list->next; trail = temp; temp->next = current-<next; current = trail->next; cout<<trail->data <<" "<<current->data<<endl;