a Problem Description Implement a recursive function named order that receives as arguments an array named a and an inte
Posted: Fri May 20, 2022 11:28 am
a Problem Description Implement a recursive function named order that receives as arguments an array named a and an integer named n. After the function executes, the elements in the array must become in ascending order without using global or static variables. Examples Before After [40,70,80, 60,40] [40, 40, 60, 70, 80) Write a C program that performs the following: o Asks the user to input an integer n. • Creates an n-element 1-D integer array named random • Fills each element in the array by random multiples of 10 between 10 and 100 Inclusive. • prints the array. passes the array to the function order, then prints the array again. Organize the output to appear as shown in the sample output below Enter number of elements 5 The array before sorting: 40 70 80 60 40 The array after sorting: 40 60 70 40 80