Computers and Technology

What is the output of the following program fragment:
void find(int a, int& b, int& c)
{
int temp;
c = a + b;
temp = a;
a = b;
b = 2 * temp;
}
int main()
{
int x, y, z;
x = 10;
y = 20;
z = 25;
find(x, y, z);
cout< < x < < " "< < y < < " "< < z <
return 0;
}
output:

answer
Answers: 1

Similar questions

Do you know the correct answer?
What is the output of the following program fragment:
void find(int a, int& b, int&...

Questions in other subjects:

Konu
Mathematics, 21.10.2020 22:01