Why have we used bool in the compare function
Bool type of function
hello @Tung_H
our compare function will tell wheter the two number are in required order or not.
if they are then it return true otherwise false.
since it is returning true and false , we have made it datatype as bool
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.