Question: Create a program that has no global variables on does the following: -In the main function create an array size=30 and call three separate functions
Create a program that has no global variables on does the following:
-In the main function create an array size=30 and call three separate functions and pass the array using pointers
-A separate function named printer must print the array before it is filled
-A separate function named random Fill must fill the array with integers between 55 and 205
-Call the printer function again to show the array was filled with random numbers
-A separate function named sorter must sort the array
-Call the printer function again to show the sorted array
All functions must use pointers and must not use [brackets]
//sample output
array before
a[0] = 0
a[1] = 0
a[2] = 0
...
array after insert
a[0] = 57
a[1] = 55
a[2] = 201
...
array after sort
a[0] = 55
a[1] = 57
a[2] = 201
...
Step by Step Solution
3.52 Rating (152 Votes )
There are 3 Steps involved in it
include include include void printerint a1 int i fori0i 30i pri... View full answer
Get step-by-step solutions from verified subject matter experts
