How do I write a program that will read ten integers from the keyboard and place them in an array? The program must then sort the array into ascending and descending order and print the sorted lists. The program must not change the original array or create any other integer arrays. How would I begin this problem if I'm working on a unix based system?© BrainMass Inc. brainmass.com November 24, 2021, 11:00 am ad1c9bdddf
The solution this problem requires two pointer arrays. The first pointer array is rearranged so that it points to the data in ascending sequence. The second pointer array is rearranged so that it points to the data in descending sequence.
Here are some hints:
<br>1. Read ...
The use of two pointer arrays is shown.