Hi i have a little question
here is a simple piece of code inserting an int in ftont of a linked list
if i change
void insertFront(list **ptrL, int data)
into
void *insertFront(list **ptrL, int data)
the compiler doesnt see any difference.
I supose that it doesnt matter what i write because it it is the same if the func returns void or pointer to void.
Can anyone explain it to me?
Thanks
Code:void insertFront(list **ptrL, int data)
{
list *temp=(list*)malloc(sizeof(struct node));
temp->data=data;
temp->next=*ptrL;
*ptrL=temp;
}

