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
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