Question: What does the following code print. Clearly indicate your auswer ( i . e . the print out ) separate from your work. class Simple

What does the following code print. Clearly indicate your auswer (i.e. the print out) separate from your work.
class Simple {
public:
Simple(int y){x=2**y;,}
int get(){ return x; }
void change(int y){x=y;}
int x;
};
bool H(int x, Simple S){
x++;
S. change (x);
x=x+10;
cout & "Inside: " S.get() & endl;
return (x>11);
}
int main(){
int x=9;
Simple S(x+2);
z=H(x,S);
cout "x:x endl;
cout "S: "S*get() endl;
cout z:z endl;
}
Please give a step by step of what each line of code does
 What does the following code print. Clearly indicate your auswer (i.e.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!