15
What will be the output of the program?
#include <iostream>
using namespace std;
class C {
public:
int v;
C(int x) : v(x) {}
C(const C &o) : v(o.v * 10) {}
};
int main() {
C a(3);
C b = a;
cout << b.v << endl;
return 0;
}Medium