This is confusing

this whole lecture is confusing.
cmp is neither as function defined nor variable and code is running sucessfully

As you can see the function compare is define.
Here when writing the bubble_sort(a,b,c) here a,b,c are parameter which will be passed when bubble_sort() will be called. So cmp is just a name like:-
for eg :- int main(){
function(a,b,c);
}
int function(int x, int y, int z){}
As in this example you can see that we can use any name while writing the function.
I hope this clears your doubt.

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.