Confusion between use of terminologies like cmp and compare

When we called compare in bubble_sort function,then why instead of writing address of compare we wrote &cmp.What is the significance of using cmp here?

Well this doubt is related with previous lecture.

hi @Harshit-Jha-2364832040305354 can you please share the code you are refering to?
& is the address operator, so when we write &x, it basically means we are talking about the address of variable x.

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.