Professional Documents
Culture Documents
h>
#include <stdlib.h>
void printList(node*);
node* createNode(int);
void insertNode(node**, int, int);
int main(){
node* head = createNode(1);
printf("Making 1st insert call \n");
insertNode(&head, 2, 0);
printf("Making 2nd insert call \n");
insertNode(&head, 4, 0);
printf("Making 3rd insert call \n");
insertNode(&head, 6, 0);
printf("Making 4th insert call \n");
insertNode(&head, 8, 0);
printf("Making 5th insert call \n");
insertNode(&head, 10, 0);
return 0;
}