1.

What kind of functions are min and max in c++?(a) Type specific(b) Variable specific(c) Type & Variable specific(d) IteratorI had been asked this question in an internship interview.I'm obligated to ask this question of Min and Max topic in division Algorithms, Objects & Iterators in C++ of C++

Answer»

Correct ANSWER is (a) TYPE specific

The best explanation: The min/max functions are type specific but they will not force EVERYTHING to be converted to/from FLOATING point. The functions that will force everything to be converted to/from floating point are fmin/fmax.



Discussion

No Comment Found

Related InterviewSolutions