If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
Page 1 of 1
If you are using C language to implement the heterogeneous linked list, what pointer type will you use?
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.
Similar topics
» Minimum number of queues needed to implement the priority queue?
» What is a dangling pointer?
» What is an opaque pointer?
» What is a smart pointer?
» What is an incomplete type?
» What is a dangling pointer?
» What is an opaque pointer?
» What is a smart pointer?
» What is an incomplete type?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|