How to store and remove dynamically and automatic variable of generic data type in custum list data
- by Vineel Kumar Reddy
Hi
I have created a List data structure implementation for generic data type with each node declared as following.
struct Node
{
void *data;
....
....
}
So each node in my list will have pointer to the actual data(generic could be anything) item that should be stored in the list.
I have following signature for adding a node to the list
…