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 anybody plz give more detailed explanation and complete
> implementation on this??
> And what is its use??
>
> thanks in advance...
>
> --
> Regards,
> $iva
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



[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 use??

thanks in advance...

-- 
Regards,
$iva

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.