✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено на екран внаслідок виконання наступного фрагмента коду:
#include <iostream>
using namespace std;
class A{
int a;
public:
void set(int x)
{
a = x;
}
void show()
{
cout << a << "\n";
}
};
void main(){
A a1;
a1.set(5);
a1.show();
}