Basically, array should be initialized on user input. If input = 3, that means this array can store one linked list in index 0,1,2 respectively (so total 3 lists)
int input = 3;
list* array[n]//not allowed as n is not constant, also not in heap so can't pass it across functions
list* array[] = (list*) malloc(sizeof(list)*input)//compiler error
Preparing for interviews...so you can say home-work!