Given the following code with multiple inheritances:
class A {
public:
void print(int a) { cout << "1"; };
};
clаss B {
public:
void print(float f) { cout << "2"; };
};
class AB : public A, public B { };
int main() {
AB ab;
ab.A::print(3.14f);
return 0;
}
If this code is compilable, what is the output? Type NC if it is not compilable.
1