Why delete function do not work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
13th Oct 2022, 11:17 AM
Lusine
Lusine - avatar
2 Answers
+ 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