What is the output of the following program?
class abc {
public:
static int x;
int i;
abc() {
i = ++x;
}
};
int abc::x;
main() {
abc m, n, p;
cout << m.x << " " << m.i << endl;
}
Answers
Answered by
0
the output of the program is x
Similar questions