What will be the output of following program?


			  		

Loading

โœช Choose the correct option.

What will be the output of following program?

#include
using namespace std;

class X
{
public:
int x;
};

int main()
{
X a = {10};
X b = a;
cout << a.x << " " << b.x;
return 0;
}

A. 10 followed by garbage value
B. 44844
C. compiler error
D. 10 0