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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!