Write a program, named intsort.c, which reads in a sequence ofpositive integers, saving each one in a sorted chain of nodes. Theinput value -1 indicates the end of input, at which point theprogram traverses the chain and prints the integers in sortedorder. The following screenshot shows the program in action:
Your program should use thestruct definitions and functions defined in the file intsort.h. Inparticular, your program should implement (and use) the functionscreateNode, insertNode, and printAll, as defined in intsort.h.
// intsort.h: definitions
OR
OR