1.

What is the output of this program?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex<double> Comp1(3.0, 9.0), Comp2;
Comp2 = pow(Comp1, 2.0);
cout << Comp2;
return 0;
}

A. (3.0, 9.0)
B. (3.0, 2.0)
C. (9.0, 3.0)
D. (-72,54)
E. (-54,72)
Answer» E. (-54,72)


Discussion

No Comment Found

Related MCQs