Why do we give the compare function as-- bool(&cmp)(int a ,int b) inside the bubble_sort function as parameter,when we have declared it by the name ‘compare’ above it?
Could not understand the concept 
Why do we give the compare function as-- bool(&cmp)(int a ,int b) inside the bubble_sort function as parameter,when we have declared it by the name ‘compare’ above it?
Could not understand the concept 