Page 1 of 1

using c language

Posted: Fri May 20, 2022 11:10 am
by answerhappygod
using c language
Using C Language 1
Using C Language 1 (58.27 KiB) Viewed 30 times
Exercise 2 Exercise Objectives ✓ recursive array processing 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 [40, 70, 80, 60,40] After [40, 40, 60, 70, 80] Write a C program that performs the following: Asks the user to input an integer n. o Creates an n-element 1-D integer array named random. o Fills each element in the array by random multiples of 10 between 10 and 100 inclusive. o prints the array. o 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: 80 40 70 60 40 The array after sorting: 40 40 60 70 80