168k views
3 votes
When using overloaded functions in appication code, the compiler will call which one

User Bfabry
by
5.5k points

1 Answer

5 votes

Answer:

The function with same name,same number and type of arguments.

Step-by-step explanation:

Function overloading occurs when the functions with same name in the same scope with the same return type but different argument numbers and different argument types.So when we want to call a specific function we have to pass the same number of arguments with same type of arguments.We can do function overloading for the functions with same return type only.

User LucasF
by
5.2k points