@iMalc
i am asking that we should do this operation on a single linked list . . . We cant use the double linked list....But for me it is conform we cant do this operation in single linked list...
I think that some of them are not able to understand my question
consider this is the function
Code:
struct node *delete(struct node *p)
{
}
and now in main we would be calling that function like this
Code:
main()
{
.........
delete(p);
.........
}
in this you consider that 'p' is the pointer of 3rd node of the single linked list and now we want to delete 'p' and one more point we know only 'p' we dont know other things like head of the linked list or prev node address and number of nodes in the list....