If the function has same parameter but different return type(int and float), Is it a overloading

No,

Function overloading is done only based of number of parameters, types of parameter, and order of parameter, return type is not the criteria for function overloading.

results matching ""

    No results matching ""