What is the output of the following code segment that invokes calc():
Given the following function:
```
void calc (int a, int& b)
{
int c;
c = a + 2;
a = a * 3;
b = c + a;
}
int x = 1;
int y = 2;
int z = 3;
calc(x, y);
cout << x << " " << y << " " << z << endl;
```
a. 1 2 3
b. 1 6 3
c. 3 6 3
d. 1 14 9
e. 2 3 4 5
b. 1 6 3
You might also like to view...
Attribute values may be enclosed in _____ .
A. HTML B. XHTML C. Both A and B. D. Neither A nor B.
A ____ loop is very convenient for cycling through array elements.
A. while B. do-while C. switch D. for
Select the statement that accurately describes a situation in which there is too much data to properly understand or make use of it.
A(n) ____________________ streams live video directly to a computer's storage device.
Fill in the blank(s) with the appropriate word(s).