/* Structure for a linked list*/ struct list{ Â Â Â int num; Â Â Â struct list* next; /* pointer to next node in list*/ }; /* Function to find the length of linked list using recursion, given the starting node pointer*/ int length(struct list* node) {
Program to find length of linked list using Recursion
August 29th, 2009 | by Amit Sahrawat | published in Amit Sahrawat, Data Structures, Linux Sample Programs
Program to print linked list in reverse order using Recursion
August 29th, 2009 | by Amit Sahrawat | published in Amit Sahrawat, Data Structures, Linux Sample Programs
/* Structure for a linked list*/ struct list{ Â Â Â int num; Â Â Â struct list* next; /* pointer to next node in list*/ }; /* Function to print data in reverse order for a linked list, given the starting node pointer*/ void reverseprint(struct list* node) {