I have this c program that delete the first node and show the node head data.
int Delete(struct node** head){
struct node *temp = headRef;
headRef = headRef->next;
tmp->next=NULL;
free(temp);
int headNode = headRef->data;
return headNode; }
I was not able to delete the first node but it give me error of request member 'data' and 'struct'