What is the output of following program.


			  		

Loading

โœช Choose the correct option.

What is the output of following program.

#include 
using namespace std;

class B;
class A {
int a;
public:
A():a(0) { }
void show(A& x, B& y);
};

class B {
private:
int b;
public:
B():b(0) { }
friend void A::show(A& x, B& y);
};

void A::show(A& x, B& y) {
x.a = 10;
cout << "A::a=" << x.a << " B::b=" << y.b;
}

int main() {
A a;
B b;
a.show(a,b);
return 0;
}

A. A::a=10 B::b=0
B. Compiler Error
C. A::a=0 B::b=0
D. None of the above