Add a public overload which calls the recursive function with head
:
void reverse_print_list() {reverse_print_list(head);}
The recursive function can now be made private.
1
solved How to pass the address of private data through main() function?
Add a public overload which calls the recursive function with head
:
void reverse_print_list() {reverse_print_list(head);}
The recursive function can now be made private.
1
solved How to pass the address of private data through main() function?