in this video we pass function as a parameter? why did we pass arguments of the function which is passed as a parameter??
Pass function as parameter
Since,the function itself depends on the type of input passed ie.you will make a different compare function for pair,for custom data type it is different.SO,you pass data type as well as along with function name.