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...

Writing an event handler for a menu item is the same as writing an event handler for a button tap or click.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When using the Governing for Enterprise Security (GES) program, an Enterprise Security Program (ESP) should be structured so that governance activities are driven by the organization's executive management, and so that it selects key stakeholders as well as the ____________.

A. Board Risk Committee B. Board Finance Committee C. Board Ethics Committee D. Chairman of the Board

Computer Science & Information Technology