For a single linked list, how to implement for adding value at head

Viewed 28
static inline void add(struct linkedList *list, void *data) {“Implement” }     

I tried to implement linked list add function but could not understand why void *data is passed. If anyone have some ideas please explain to me.

0 Answers
Related