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
Get step-by-step solutions from verified subject matter experts
