two pointer arrays
This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!
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 May 24, 2023, 12:49 pm 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.