0
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).
1 Antwort
0
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