two pointer arrays
Not what you're looking for? Search our solutions OR ask your own Custom question.
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 ad1c9bdddfhttps://brainmass.com/computer-science/sorting/two-pointer-arrays-3047
Solution Preview
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 ...
Solution Summary
The use of two pointer arrays is shown.
$2.49