What is the output of following program?


			  		

Loading

โœช Choose the correct option.

What is the output of following program?

#include 
using namespace std;

class Test
{
static int x;
public:
Test() { x++; }
static int getX() {return x;}
};

int Test::x = 0;

int main()
{
cout << Test::getX() << " ";
Test t[5];
cout << Test::getX();
}

A. 44686
B. 0 0
C. 0 5
D. compiler error