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

Prompt the user to enter an integer.

What will be an ideal response?

Computer Science & Information Technology

Which of the following is FALSE about the Colors gallery?

A) To select a color theme, right-click the choice in one of the Theme Colors to apply it. B) Each color of a color theme is assigned to a different element in the theme design. C) You can create your own color theme. D) All color themes provide a set of colors.

Computer Science & Information Technology

The Microsoft HoloLens headset has all of the following except _______ .

A. wireframes B. built-in processors C. sensors D. cameras

Computer Science & Information Technology

A command that searches your document for features that may not be supported by older versions of Office.

A. Fact checker B. Live Preview C. Check Compatibility

Computer Science & Information Technology