Vidyalelo
C++ Programming · Q183

Classes and Objects in C++

Programming · C++ Programming · question 183

Q183

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

A.
(4, 6)
Answer
B.
(2, 3)
C.
(6, 12)
D.
(6, 15)

Answer: Option A

Solution

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