1.

What is the output of this program?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex<double> Comp_double(4, 6);
complex<int> Comp_int(7, 8);
Comp_double *= 2;
Comp_double = Comp_int;
cout << Comp_double;
return 0;
}

A. (7,8)
B. (4,6)
C. (8,7)
D. (6,4)
E. None of these
Answer» B. (4,6)


Discussion

No Comment Found

Related MCQs