What will be the output of the following C++ code?
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex <double> cn(3.0, 4.0);
cout<<sin(cn)<<endl;
return 0;
}
#include <iostream>
#include <complex>
using namespace std;
int main()
{
complex <double> cn(3.0, 4.0);
cout<<sin(cn)<<endl;
return 0;
}A. (3.85374,-27.0168)
B. 3.85374
C. -27.0168
D. 3.85374 – 27.0168
Answer: Option A

Join The Discussion