adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include 
    using namespace std;
    void duplicate (int& a, int& b, int& c)
    {
        a *= 2;
        b *= 2;
        c *= 2;
    }
    int main ()
    {
        int x = 1, y = 3, z = 7;
        duplicate (x, y, z);
        cout << x << y << z;
        return 0;
    }

a.

1468

b.

2812

c.

2614

d.

none of the mentioned

Answer: (c).2614

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?