What is the printout of the following code?

```
#include
using namespace std;

void f(int &p1, int p2)
{
p1++;
p2++;
}

int main()
{
int x1 = 1;
int x2 = 1;
f(x1, x2);
cout << "x1 is " << x1 << " x2 is " << x2;
}
```

a. x1 is 2 x2 is 2
b. x1 is 1 x2 is 2
c. x1 is 1 x2 is 1
d. x1 is 2 x2 is 1

d. x1 is 2 x2 is 1

Computer Science & Information Technology

You might also like to view...

Which of the following technology package licenses is needed for functions like VoIP and IP Telephony?

A) IP Base B) Application Experience C) Unified Communications D) Security

Computer Science & Information Technology

What will be the values of k[1] and k[3] after execution of the code fragment below using the data shown?

``` int k[6] = { 0, 0, 0, 0, 0, 0 }; Data: 2 0 1 int n; for ( int i = 3; i < 6; ++i ) { cin >> n; k[n] = i; } ```

Computer Science & Information Technology