Question: Exercise 2 for Call By Reference Method for Functions Show the outputs for the variables. 1 . #include using namespace std; void figure _ me

Exercise 2 for Call By Reference Method for Functions
Show the outputs for the variables.
1. #include
using namespace std;
void figure_me_out(int x, int & y, int& z);
void main()
{ int a(23), b(17), c(55);
figure_me_out(a,b,c); a b c
cout << a << b << c;
}// end of main
void figure_me_out(int x, int &y, int& z) x y z
{
cout << x << y << z;
x =13;
y =27; x y z
z =45;
cout << x << y << z;
}

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 Programming Questions!