✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено в результаті виконання коду?
Введіть відповідь точно так, як її виведе програма, без додаткових пробілів.
#include <iostream>
using namespace std;
struct P {
int x=5; public:void g(){cout<<"P"<<x;}
};
struct Q : public P {
public:void g(){cout<<"Q"<<x;}
};
int main() {
Q obj;
obj.g();
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!