S
sangram
how to delete last node of a Linked list if you only know the address
of last node.
thanks
sangram
of last node.
thanks
sangram
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
how to delete last node of a Linked list if you only know the address
of last node.
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
how to delete last node of a Linked list if you only know the address
of last node.
Richard said:sangram said:
exit(0); will do it. Don't forget <stdlib.h>, though.
Does the Standard guarantee that exiting the program will reclaim
the memory used?
Richard said:Chris Dollin said:
The Standard guarantees that, after the program exits, it won't be able to
tell that the last node has /not/ been deleted.
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
Let 0x1000 be the address of the last node,
Then
void* p = 0x1000;
free(p);
I'm just a beginner in C, I just thought, Will it work...
sangram said:how to delete last node of a Linked list if you only know the address
of last node.
thanks
sangram
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.