Function in another function

Why do we pass the address location of the function?
(&cmp)

hi @dtewari2001
this is syntax of passing function as a parameter

you have to pass pointer of function that’s why we write &cmp to accept function pointer

1 Like