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;
cout << " j is " << j;
cout << " k is " << k << endl;

return 0;
}
```
a. i is 2 j is 2 k is 2
b. i is 1 j is 2 k is 3
c. i is 1 j is 1 k is 1;
d. i is 1 j is 2 k is 2


d. i is 1 j is 2 k is 2

Computer Science & Information Technology

You might also like to view...

It is a standard convention among C# programmers to use ____________ for method names because it differentiates method names from variable and field names.

a. camel Case b. lowercase characters c. Pascal case d. uppercase characters

Computer Science & Information Technology

Auto Repair Database

What will be an ideal response?

Computer Science & Information Technology

What is the main reason for adding formatting to text in OneNote?

A) To keep your work organized B) To find text quicker C) To add interest and emphasis D) To make all text the same

Computer Science & Information Technology

What is the shortest valid abbreviation of the IPv6 address 2001:00cb:1562:0dc3:5400:0001:24a0:0014?

A) 2001:cb:1562:dc3:54::1:24a0:14 B) 2001:cb:1562:0dc3:5400::1:24a::14 C) 2001:cb:1562:dc3:54:1:24a: 14 D) 2001:cb:1562:dc3:5400:1:24a:14

Computer Science & Information Technology