Vidyalelo
C++ Programming · Q111

Classes and Objects in C++

Programming · C++ Programming · question 111

Q111

What will be the output of the following C++ code? #include #include using namespace std; int main() complex c_double(2, 3); complex c_int(4, 5); c_double *= 2; c_double = c_int; cout << c_double; return 0;

A.
(2, 3)
B.
(4, 5)
Answer
C.
(8, 15)
D.
(8, 10)

Answer: Option B

Solution

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