IT Community - Software Programming, Web Development and Technical Support

What pointer type is used to implement the heterogeneous linked list in C?

This is a discussion on What pointer type is used to implement the heterogeneous linked list in C? within the C and C++ Programming forums, part of the Software Development category; Void pointer type used, The heterogeneous linked list contains different data types in it's nodes and we need a ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-21-2007, 01:19 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Post What pointer type is used to implement the heterogeneous linked list in C?

Void pointer type used, The heterogeneous linked list contains different data types in it's nodes and we need a link, pointer, to connect them. Since we can't use ordinary pointers for this, we use the void pointer. Void pointer is a generic pointer type, and capable of storing pointer to any type.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-02-2007, 11:16 PM
Venkat Venkat is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 350
Venkat is on a distinguished road
Thumbs up Re: What pointer type is used to implement the heterogeneous linked list in C?

hi this also reason for using it...

The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them. It is not possible to use ordinary pointers for this. So we go for void pointer. Void pointer is capable of storing pointer to any type as it is a generic pointer type.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Value type and reference type in .Net? anbuchezhians VB.NET Programming 2 08-21-2007 10:42 PM
pointer concept in C vigneshgets C and C++ Programming 1 08-14-2007 01:03 AM
Explain Reverse a linked list. sundarraja C and C++ Programming 1 08-02-2007 11:27 PM
Smart Pointer sundarraja C and C++ Programming 1 07-25-2007 06:06 AM
Why pointer can't use in Java vadivelanvaidyanathan Java Programming 4 07-16-2007 11:23 PM


All times are GMT -7. The time now is 05:10 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0