To print apple, banana, grape, and mango in reverse order
Kartik sir has used
sort(s,s+n,compare);
instead of using compare can’t we print that array in the opposite direction?
like for(int i = n; i>=0;i–){
cout<<s[i]<<endl;}
here n = number of values in an array
s = array where we stored all our values