What is the output of the following code?

```
#include
using namespace std;

void f1(int x, int &y, int *z)
{
x++;
y++;
(*z)++;
}

int main()
{
int i = 1, j = 1, k = 1;
f1(i, j, &k);

cout << "i is " << i << endl;
cout << "j is " << j << endl;
cout << "k is " << k << endl;

return 0;
}
```


i is 1
j is 2
k is 2

Computer Science & Information Technology

You might also like to view...

Compare and contrast the break and continue statements.

What will be an ideal response?

Computer Science & Information Technology

The ________ data type stores serial numbers that are converted and formatted as dates or times

Fill in the blank(s) with correct word

Computer Science & Information Technology

The biggest advantage of an object created either as an object literal or with thenewObject()command is that the object is reusable.

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

Computer Science & Information Technology

How many tables make up the Premiere Products database?

A. 3 B. 5 C. 6 D. 7

Computer Science & Information Technology