Linked List Delete Node , Simple linked list
问题 I'm trying to implement a function that deletes nodes from a linked list. So far, I can delete just the first node of the list(3). I tried to go to the for loop from delete, I thought that the memory is not well allocated, I have been struggling for a few days and I don't understand, please help me a little, it's the topic I received from college. #include <stdio.h> #include <stdlib.h> typedef struct nod { int key; struct nod *urm; } NOD; NOD *first=0,*last=0; void add(int x) { NOD *p=(NOD*