Vidyalelo
C++ Programming · Q135

Classes and Objects in C++

Programming · C++ Programming · question 135

Q135

What will be the output of the following C++ code? #include #include using namespace std; int main() complex c1(4.0, 16.0), c2; c2 = pow(c1, 2.0); cout << c2; return 0;

A.
(-240, 128)
Answer
B.
(240, 128)
C.
(240, 120)
D.
(240, -122)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board