1.

How to declare the complex number?(a) (3, 4)(b) complex(3, 4)(c) (3, 4i)(d) (3, 4g)I have been asked this question by my college director while I was bunking the class.My doubt stems from Complex Number Type topic in division Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Right ANSWER is (b) complex(3, 4)

The best I can explain: We can DECLARE the complex number by using complex(3,4) where 3 is a real number and 4 is IMAGINARY PART.



Discussion

No Comment Found

Related InterviewSolutions