Consider the following C++ program:
#include
using namespace std;
void modify(int &a, int &b, int &c)
{
a = 2;
b = 6;
c = 14;
}
int main()
{
int x = 1, y = 3, z = 7;
modify(x, y, z);
cout << x << " " << y << " " << z;
return 0;
}
What will be the output of the program?
- $1 \ 3 \ 7$
- $2 \ 6 \ 14$
- $2 \ 3 \ 7$
- Compilation error