Answers for "how to sort in descending order c++"

C++
11

how to sort in descending order c++

int arr[10];
int length = sizeof(arr)/sizeof(arr[0]); 
sort(arr, arr+length, greater<int>());
Posted by: Guest on May-16-2020

Code answers related to "how to sort in descending order c++"

Browse Popular Code Answers by Language