How to delete the node that given as argument in single linked list? Is there any system call to get prev pointer ?
Note: Here the goal is to delete the address not the node's value
No in C we don't have a system call to get the previous pointer of a singly linklist node. Perfect case of publishing an article...i.e. Single LinkList Implementation.
void deletenode() { struct node *r; if(start==NULL) { printf("List is empty\n"); } else { r=start; start=start->link; free(r); } }
How to find the median of simple linked list and add a node after it? C program would be helpful?