Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create a linked-list using function and pointer?
Posted
Updated 9-Aug-12 19:40pm
v2
Comments
Philip Stuyck 10-Aug-12 2:18am    
What do you mean with using function and pointer ?
pasztorpisti 10-Aug-12 3:04am    
You will need the data structure (pointer to data), and a set of functions each of them performing a linked-list specific operation plus linked list creation/deletion. e.g.: LinkedList_Create(), LinkedList_Delete(), LinkedList_InsertItem(), LinkedList_RemoveItem(), LinkedList_FindItem(), ...

1 solution

Take a look at this CP article here[^].

It covers how linked lists are done given the points it has earned seems a correct article, but be careful, there are lots of comments that say that the implementation is not good. See the theory involved there.

You can also see other resources like:

http://www.macs.hw.ac.uk/~rjp/Coursewww/Cwww/linklist.html[^]

http://cslibrary.stanford.edu/103/[^]

http://www.cprogramming.com/tutorial/c/lesson15.html[^]

...

Good luck.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900