Question OOP-CLS-0039
EasyWhat is the output of this code?
#include <iostream>
using namespace std;
class A {
public:
int v;
};
int main() {
A a;
a.v = 1;
A b = a;
b.v = 7;
cout << a.v << b.v;
}
- A.
11
- B.
71
- C.
77
- D.
17
Sign up free to see the answer and a step-by-step explanation.