Re: [algogeeks] Generic Linked list

2010-12-17 Thread rahul
Use template. On Fri, Dec 17, 2010 at 12:41 PM, siva viknesh wrote: > How to implement a generic linked list?? > > ..this is one of the frequently asked interview question > > ..for this we have to use void pointers > > struct node > { > void *data; > struct node *link; > }; > > ..can anybo

[algogeeks] Generic Linked list

2010-12-16 Thread siva viknesh
How to implement a generic linked list?? ..this is one of the frequently asked interview question ..for this we have to use void pointers struct node { void *data; struct node *link; }; ..can anybody plz give more detailed explanation and complete implementation on this?? And what is its