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

When applying a texture to a slide background, choose a texture that complements the content

Indicate whether the statement is true or false

Computer Science & Information Technology

Constructor that converts an AdjacencyMatrix object to a Digraph

What will be an ideal response?

Computer Science & Information Technology