Question: Ansswer this question with explanation and i will appreciate Write a C++ program which sorting an arr[10]={60,23,8,45,37,115,10,2,89,18}. Ask the user to choose 1 for ascending
Ansswer this question with explanation and i will appreciate
Write a C++ program which sorting an arr[10]={60,23,8,45,37,115,10,2,89,18}. Ask the user to choose 1 for ascending order using Selection Sort and 2 for descending order. The program will display the array elements before and after sorting. The program should contain: a. Selection sort Function using pointers. b. Descending sort Function using pointers. c. Swap Function using pointers too
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
