By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,200 Members | 1,584 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,200 IT Pros & Developers. It's quick & easy.

Generic linked list in c

P: 1
what is meant by generic linked list.How to implement it in c?
can anyone plz help me.
Feb 4 '08 #1
Share this Question
Share on Google+
3 Replies


sicarie
Expert Mod 2.5K+
P: 4,677
what is meant by generic linked list.How to implement it in c?
can anyone plz help me.
A generic linked list is just that - any linked list whose implementation has the prerequisite features of a "linked list" (listed in the link).

You can find a great deal on this by Google searching.
Feb 4 '08 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
A generic linked list, in C, is a linked list with a void* in the node for the data.

By typecasting, you can use the linked list for any type.

And please, for heaven's sake, do not carry this concept into C++. void* are deprecated in C++.
Feb 4 '08 #3

P: 12
Anyone know why that is? I mean the deprecated null pointer.... I ran into some situations that required it in directx. It had to do with passing lists of points to draw routines. Is there some syntax to replace the functionality? or is one of those things that they just assume is bad design if you need to use it?
Feb 4 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.