sort2.c contains the finished program.
The next step would be to factor out the populating of the array, sorting the array, and printing the array into separate functions.