Will the following code compile?

int foo();
char foo();
Explanation
No, because two functions differ only by the type of a return value, but it is not taken into account during the overload resolution.

Слідкуй за CodeGalaxy

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

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