questionvoid calc int a intamp bint cc a 2a a


Question

void calc (int a, int& b)
{
int c;

c = a + 2;
a = a * 3;
b = c + a;
}

What is output of following code fragment that invokes calc?

(All variables are of type int)

x = 1;
y = 2;
z = 3;

calc(x, y);
cout << x << " " << y << " " << z << endl;

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionvoid calc int a intamp bint cc a 2a a
Reference No:- TGS0443942

Expected delivery within 24 Hours