13th Oct 2022, 11:17 AM
Julianna
Julianna - avatar
2 Answers
+ 2
May you trying if(n->next==NULL) or if(n!=NULL) ?
13th Oct 2022, 11:38 AM
Jayakrishna 🇮🇳
Jayakrishna 🇮🇳 - avatar
+ 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