What will be printed as a result of the code execution?
#include <iostream>

class A
{
public:
    void F1(int a) const
    {
        std::cout << a;
    }

    void F1(float a)
    {
        std::cout << 2*a;
    }
};

int main()
{
    const A a = A();
    a.F1(5.5);
    return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes