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
You might also like to view...
Compare and contrast the break and continue statements.
What will be an ideal response?
The ________ data type stores serial numbers that are converted and formatted as dates or times
Fill in the blank(s) with correct word
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)
How many tables make up the Premiere Products database?
A. 3 B. 5 C. 6 D. 7