Money change problem

In compare function which two numbers are used to compare. What are the values of int a and int b?
please show me by example!

Hello @rakesh_anand suppose if we have array like this
a[]={3,11,1};
and if we wan to sort in increasing order.
then it will sort like:
in first step:
3 and 11 will be compare and it will evaluate to be true.
and then 3 and then 11 and 1 then it will return false and then it will be changed to 3 1 11 and then 3 and 1 will be compared and then 1 3 11 will be done.
if you have any doubt you can ask here;
Happy Learning!!

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.