what does
Return a>b and a<b do
Sir I am cofused in bool compareter
bool comp(int a,int b){
return a<b;
}
It would return true if a is less than b, and false if a>b, which helps your inbuilt sorting algorithm to work.
If you want to sort in ascending order you write return ab
Sir I am confused in money exchange problem what is a and b there
Please share the problem link, or maybe open a new doubt in that problem
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.