13th Oct 2022, 11:17 AM
Tree Lover
Tree Lover - avatar
2 Réponses
+ 2
May you trying if(n->next==NULL) or if(n!=NULL) ?
13th Oct 2022, 11:38 AM
Jayakrishna 🇮🇳
+ 1
because you haven't written any logic to delete a node inside delete function.
13th Oct 2022, 11:21 AM
Davinder Kumar
Davinder Kumar - avatar