Which code, inserted at line 10, generates the output "2?1"?
#include
#include
using namespace std;
class A {
protected:
int y;
public:
int z;
};
//insert code here
public:
void set() {
y = 2;
z = 3;
}
void Print() { cout << y << z; }
};
int main () {
B b;
b.set();
b.z = ?1;
b.Print();
return 0;
}
Valentine
2 days agoCarolynn
7 days agoValentine
12 days agoCyril
17 days agoCarry
22 days agoDeeanna
28 days agoPercy
1 month agoCyril
1 month agoDeeanna
1 month agoPercy
2 months agoCyril
2 months agoNakisha
2 months agoTeri
2 months agoPok
2 months agoTish
2 months agoLaquanda
3 months agoJackie
3 months agoDella
3 months agoVallie
3 months agoBethanie
3 months ago