i have a beginner question about function in C, say I have a array of pointers to linked list and I want to write a function to add a pointer of a node to the array:
void addhash(int value,struct node ** arr[]){
struct node *p =(struct node*)malloc(sizeof(struct node));
p->value=10;
arr[value]=&p;
};
Is this the correct way to define the function? when I run this in main, the bucket that I tried to add a node to is somehow still NULL.