Write a c program that reads integers from the keyboard and


Write a C program that reads integers from the keyboard and place them in to an array. The program will 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.Use 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. Output should be formatted with the three arrays printed as vertical lists next to each other. Must use pointer notation. Out put should look similar to below.

Sample Run:

Ascending                          Original       Descending

14                                        26                  57

26                                       14                   41

33                                       57                  33

41                                        33                  26

57                                        41                  14

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a c program that reads integers from the keyboard and
Reference No:- TGS02253116

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)