1.

What is the output of this program?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex<int> num(4, 5);
num = num * 7 / 4;
cout << num;
return 0;
}

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


Discussion

No Comment Found

Related MCQs