1.

How many parameters are needed for minmax function?(a) 1(b) 2(c) 3(d) All of the mentionedThe question was posed to me in an online interview.This question is from Min and Max in portion Algorithms, Objects & Iterators in C++ of C++

Answer»

The correct choice is (d) All of the mentioned

The BEST explanation: The “MINMAX” function can take the following:

1 PARAMETER: An initializer_list object.

2 parameters: Values to COMPARE.

2 parameters: An initializer_list object. and comparison function

3 parameters: Values to compare. and comparison function



Discussion

No Comment Found

Related InterviewSolutions