Which of the following overloaded functions will be called in the main() function?
int main()
     return 0;
For the function f(int), the conversion of the actual argument of type double to type int should be applied, which is one of the standard ones. For the function f(double, double), the type of the actual argument double exactly matches the type of the formal parameter. Since exact matching is better than the standard conversion, f(double, double) is considered the most suitable function for this call.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Зареєструйся Зараз
або Підпишись на майбутні тести