comparators-Understanding and working

bool compare(int a,int b){
return a <b;
}
void bubble_sort(int a[],int n, bool (&cmp),(int a,int b) )
{
}
for passing the compare function inside the bubble sort function, why is the bool (&cmp) written inside the brackets? why not &compare? Please explain both my questions

@Tiwary725 it must be compare

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.