adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    #include <complex>
    using namespace std;
    int main()
    {
        complex<int> i(2, 3);
        i = i * 6 / 3;
        cout << i;
        return 0;
    }

a.

(4, 6)

b.

(2, 3)

c.

(6, 12)

d.

None of the mentioned

Answer: (a).(4, 6)

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?