Reverse Print

 void rev_display(node*head){

    if(head==NULL){

        cout<<endl;

        return;

    }

    

    rev_display(head->next);

    cout<<head->data<<" ";

}


Comments

Popular posts from this blog

Sum of Even Numbers till N

Find the Runner-Up Score!

Print All Substrings