Linked list issue in C
问题 I have to generate random numbers and put them in a linked list sorted. my code runs fine on my home computer on cygwin, however when I run it on the schools system, i keep getting that the list is empty. Not sure what the issue is. #include<stdio.h> #include<stdlib.h> typedef struct node{ int num; struct node *next; }node_t; node_t* insertNodeSorted(node_t *head, int x); void printList(node_t *head); void deleteList(node_t *head); int main(int argc, char *argv[]) { node_t *dummy; int counter