Why do we pass the address location of the function?
(&cmp)
Function in another function
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