What is the output of the following program? #include using namespace std; void Try( int&, int ); int x; int y; int z; int main() { x = 1; y = 2; z = 3; Try(y, x); cout



What is the output of the following program?












#include


using namespace std;


void Try( int&, int );


int x;


int y;


int z;


int main()


{


  x = 1;


  y = 2;


  z = 3;


  Try(y, x);


  cout < x="">< '="" '="">< y="">< '="" '="">< z=""><>


  return 0;


}


void Try( int& a, int  b )


{


  int x;


  x = a + 2;


  a = a * 3;


  b = x + a;


}







Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here