1.

Which function is used to get the real part of the complex number?(a) img_p()(b) imag_p()(c) real()(d) real_p()I have been asked this question in an interview for internship.I would like to ask this question from Complex Library topic in division Class Hierarchies, Library & Containers of C++

Answer»

Correct option is (c) real()

Best EXPLANATION: The real() FUNCTION is PROVIDED by the complex

to ACCESS the real part of a complex number object.



Discussion

No Comment Found

Related InterviewSolutions