Activity - Debugging
Fix bugsort.c from class to output items in ascending sorted order.
$ cp -r /thayerfs/courses/22fall/cosc050/workspace/activities/day14/bugsort.c .
$ mygcc -o sort bugsort.c
Hint: an item will have to go somewhere in the sorted array. No need to loop back to find the spot the new item should go, then loop again moving all items forward one space (like we did in CS10). So, just loop backward one time until you find the place the new item should go.
Solution
One solution: bugsort-fixed.c