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