1.

Which of the following mathematical function is overloaded in and ?(a) cos(b) tan(c) sin(d) modI had been asked this question in an interview for job.The above asked question is from Standard Mathematical Functions in chapter Strings, Streams & Numerics in C++ of C++

Answer»

The CORRECT choice is (B) tan

The explanation is: Because tan has more DIFFERENT definition in NORMAL case and in case of complex NUMBER i.e. tan = sin/cos(normally) and tan = y/x in complex numbers.



Discussion

No Comment Found

Related InterviewSolutions