I need to obtain an non-increasing order from a given random ordered elements.After working a lot, I realized that both the following codes produce different outputs. Why the codes produce different outputs?
bool cmp(int i,int j)
{
if(i<j)
return 0;
return 1;
}
bool cmp(int i,int j)
{
return i>j;
}