I have a project due that I'm stumped on. The problem states:
Read 5 integers from keyboard and place them in an array, then sort them in ascending and descending order, then print the sorted lists. "The program must not change the original array or create any other integer arrays."
The output is to be a vertical list of the 3 arrays:
Ascending | Original | Descending
Also states the solution requires two pointer arrays...we're basically on sorts (selection, bubble) pointers and arrays...no advanced stuff.
I have no problem reading in the numbers to an array and sorting but no matter what i do it changes the original array.
Any ideas to get me in the right direction?