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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
|
#2
| |||
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 09:42 PM |
| pointer concept in C | vigneshgets | C and C++ Programming | 1 | 08-14-2007 12:03 AM |
| Explain Reverse a linked list. | sundarraja | C and C++ Programming | 1 | 08-02-2007 10:27 PM |
| Smart Pointer | sundarraja | C and C++ Programming | 1 | 07-25-2007 05:06 AM |
| Why pointer can't use in Java | vadivelanvaidyanathan | Java Programming | 4 | 07-16-2007 10:23 PM |
Our Partners |