Computer Science, asked by sinhasimran1212, 1 year ago

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 oncray258pdct3u
0
the output of the program is x
Similar questions