Q798
What will be the output of the following C++ code? #include #include using namespace std; int main() complex cn(3.0, 4.0); cout<<"proj"<<cn<<" : "<<proj(cn)<<endl; return 0;
A.
proj(3,4) : (3,4)
AnswerB.
proj(3,4) : (4,3)
C.
proj(3,4) : (-3,-4)
D.
proj(3,4) : (-3,4)
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board