What will be the output of the following C++ code?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex <double> cn(3.0, 5.0);
cout<<arg(cn)<<endl;
return 0;
}
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex <double> cn(3.0, 5.0);
cout<<arg(cn)<<endl;
return 0;
}A. 1.03038
B. 0
C. Not defined
D. Error
Answer: Option A

Join The Discussion