hello, my problem is that i have two structs
Code:struct data{ char data[20]; struct data *next; }; struct node{ struct data *head; };
and i have an array of struct node
how can i get the address of any of the struct member "*head" of this array? to store it in other var and change it?Code:struct node *array = malloc(10 * sizeof(struct node)); int i; for(i = 0; i < 10; i++){ }
Code:struct data **neeew = NULL *neeew = &(array+5)->head; //doesnt work