You are viewing a single comment's thread. Return to all comments →
void reversePrint(SinglyLinkedListNode* llist) { SinglyLinkedListNode *p = llist; if(p!=NULL){ reversePrint(p->next); cout<<p->data<<'\n'; } }
Seems like cookies are disabled on this browser, please enable them to open this website
Print in Reverse
You are viewing a single comment's thread. Return to all comments →
Using recursion in C++