Question: Assuming the following node class definition: class node{ public: entrytype data; node *next; }; Write a recursive function for the node class to print each
Assuming the following node class definition:
class node{
public:
entrytype data;
node *next;
};
Write a recursive function for the node class to print each node in a list. Assume that the function is automatically called on the first node in the list and that the last node in the list points to NULL.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
