Question: C++ Write a function called Sort that takes in three parameters: an integer array the size of the array This function should sort the array

C++

Write a function called Sort that takes in three parameters:

an integer array

the size of the array

This function should sort the array either ascending or descending, your choice. This function does not return a value. This function should actually sort the array itself, not just print out the contents in order. Sample call: // Suppose "list" is {4,3,7,1,2} Sort(list,5); // would make the array now contain: {1,2,3,4,7}

FUNCTION should NOT do any keyboard input or screen output. All cin/cout should be done in main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!