Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

include include include void printerint a1 int i fori0i 30i pri... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual C# An Introduction to Object-Oriented Programming

Authors: Joyce Farrell

7th edition

978-1337102100

More Books

Students also viewed these Programming questions