Challenge: Sort Elements of an Array in Descending Order
Explore how to implement a function in C++ that sorts the elements of an integer array in descending order. This lesson guides you through the problem statement, encourages you to attempt the solution independently, and prepares you to handle array data effectively in programming.
We'll cover the following...
We'll cover the following...
Problem statement
Your task is to write a function sort_elements. Your function signature would be:
The input array arr[ ] will contain the ...