1.

What is the output of this program?
#include <iostream>
#include <complex>
using namespace std;
int main ()
{
complex<double> Comp (10.0, 4.0);
cout << imag(Comp) << endl;
return 0;
}

A. 10.0
B. 4.0
C. 4
D. 10
E. None of these
Answer» D. 10


Discussion

No Comment Found

Related MCQs