In C++ - please write neatly. 11. (5 points) Given the following node and linked
ID: 3720025 • Letter: I
Question
In C++ - please write neatly.
11. (5 points) Given the following node and linked list declared as shown below, please write a LinkedList member function (void printListBackwardNode* item)) that will recursively output the items in the linked list object in reverse order (i.e. from myTail to myHead) when calling printListBackward(myHead) class Node class LinkedList public: friend class LinkedList; public: Node( int no) : itemNo(no) LinkedList0: -LinkedList); void printListBackward(Node* item); private: this->next-NULL Node *myHead; Node *myTail; private: int itemNo; Node "next;Explanation / Answer
void printListBackward(Node* item){ if(item == NULL){ return; } else{ printListBackward(node->next); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.