If you are using C language to implement the heterogeneous linked list, what pointer type should be used?

Category: Data StructureIf you are using C language to implement the heterogeneous linked list, what pointer type should be used?
1 Answers
Editor">Editor Staff answered 2 years ago

The heterogeneous linked list contains different data types, so it is not possible to use ordinary pointers for this. For this purpose, you have to use a generic pointer type like void pointer because the void pointer is capable of storing a pointer to any type.