'compare' is a function and while passing it as a parameter, the function call parenthesis isn't used, still, the function is called. why?
I tried int k = compare;
but that threw error. i don't know what's happening!
//compare function:
bool compare(int a, int b){
return a<b;
}
// ... and in main() :
li.merge(li1, compare); // where li and li1 are lists.
I hoped it should throw errors like function call isn't defined.