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

Computer Science & Information Technology

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.

Computer Science & Information Technology

A ____ loop is very convenient for cycling through array elements.

A. while B. do-while C. switch D. for

Computer Science & Information Technology

Select the statement that accurately describes a situation in which there is too much data to properly understand or make use of it.

Computer Science & Information Technology

A(n) ____________________ streams live video directly to a computer's storage device.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology