Below are questions that test your understanding of C++ parameter passing. All are taken from Test 1 in CSE 17 in the given semester. See www.lehigh.edu/~ejk0/examfile.html for the answers. Spring 1998 3. (15 pts) Given the function and variable declarations below, state what output is generated by the code below the dashed line. void a(int & x, int y,int & z) { x=y+z; y=y+z; z=z+2; cout << x << " " << y << " " << z<3*c; } void out(bool t,int a, int b) {if(t) cout< using namespace std; void one(int x, int &y, int &z); void two(int *x, int *&y, int v[]); int main(){ int xx,yy,zz; xx=1; yy=2; zz=3; one(zz,yy,xx); cout<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> //---- 1: 11 7 3 //---- 2: 7 //-----3: 7 8 7 2 8 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Spring 2007 2. For each question below, assume that the same main() given here: #include using namespace std; int main(){ int a,*b,c; a=10; b=&c; c=20; x(a,a,b); cout<>>>>>>>>>>>>>>>>> 10 42 42 { *t=42; y+=4; t=&z; z+=y+3; } b) State the output of the above program if x is defined by void x(int &y, int z, int *t) //>>>>>>>>>>>>>>>>> 14 42 42 { *t=42; y+=4; t=&z; z+=y+3; } c) State the output of the above program if x is defined by void x(int &y, int& z, int *t) //>>>>>>>>>>>>>>>> 31 42 42 { *t=42; y+=4; t=&z; z+=y+3; } d) State the output of the above program if x is defined by void x(int &y, int& z, int *&t) //>>>>>>>>>>>>>>> 31 31 42 { *t=42; y+=4; t=&z; z+=y+3; }