What will happen in case of using function overloading and default argument at the same time?

When I created two functions one which takes one float argument and other function which take two int arguments (one set to default). What would be the output if I call function_name(5).


8/2/2016 3:32:23 PM

Sarthak Agarwal

1 Answer

New Answer


The one that has the right type without need of implicit type casting, 5 is an int, so it will be the fct that takes int