Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to sort in descending order in c++

sort(str.begin(), str.end(), greater<int>());
cout<<str;
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sort #descending #order
ADD COMMENT
Topic
Name
5+8 =