using c language
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
using c language
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am