What will the output of the following program be?
#include iostream using namespace std;

class personal 1
{

public:
int p();
int (personal : :*x( );
};
int personal : :p() {
return 1;
}

int main() {
personal a;
a.x = &personal::p; cout ((a.* (a.x)) ());
}

Posted on by