Recursion - linked list
Recursive function to create a lined listfrom an array of integers: Listitem * array_to_list (int *a, int size){ Listitem * head; if (size == 0) return NULL; head = (Listitem *)malloc(sizeof(Listitem)); head->data = a[0]; if (size > 1) head->next = array_to_list(a+1,size-1); else head->next = NULL; return head;}