Question: in c Exercise 2 - Connect four 2D array Exercise Obiectives Passing 1-D arrays to functions Call by reference Problem Description Define and implement a

in c
Exercise 2 - Connect four 2D array Exercise Obiectives Passing 1-D arrays to functions Call by reference Problem Description Define and implement a function named Fill that receives two parameters: an array a of integers and its size n. The function should ask the user to fill the array with n integer values in the range 7 to 30 (inclusive) Define and implement a function named sortASC that receives two parameters: an array a of integers and its size n. The function should sort the array ascending and then prints it. Define and implement a function named sortDES that receives two parameters: an array a of integers and its size n. The function should sort the array descending and then prints it. Implement a main function that performs the following: Defines three integer arrays: array1 of size 3, array2 of size 3. Uses function sortASC to sort the values in array1 and return it to the main. Uses function sortDES to sort the values in array2 and return it to the main
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
