linked_list/linked_list1.cpp
// 2 recurssive method
// display function
// this displays the data in excessing order
// because display_rec fxn is called after the 
// print statement
2 recurssive method
display function
this displays the data in excessing order
because display_rec fxn is called after the
print statement
2 recurssive method display function this displays the data in excessing order because display_rec fxn is called after the print statement
void dispay_rec(struct Node * p)
{
    if(p != NULL)
    {   
        dispay_rec(p->next);
        cout<< p->data << endl;
    }
}
void dispay_rec ( struct Node * p ) { if ( p != NULL ) { dispay_rec ( p -> next ) ; cout << p -> data << endl ; } }
2 recurssive method
display function
this displays the data in excessing order
because display_rec fxn is called after the
print statement
2 recurssive method display function this displays the data in excessing order because display_rec fxn is called after the print statement
// base condition for cont.. // if we call the recurssive fxn first then the print // statement will be executed in the returning acces // prints the node data in reverse order // dispay_rec(p->next);