-
A linked list
/*#include headers here */ struct list_el { int val; struct list_el * next;}; typedef struct list_el Item; Item *list, *tail; //references to the linked list int main() { int i; Item *curr; int array[] = {1, 24,3,412,125,6,74,228,9, 10}; /*initialize the list*/ list = (struct Item*)malloc(sizeof(Item)); list->next=NULL; // this is important to list->val = 0; //…
