1.

What is the output of this program?
#include <iostream>
#include <algorithm>
using namespace std;
bool Function(int k, int L)
{
return k < L;
}
int main ()
{
int Array[ ] = {31, 17, 12, 51, 16, 14};
cout << *min_element(Array, Array + 6, Function) << " ";
cout << *max_element(Array, Array + 6, Function) ;
return 0;
}

A. 17 31
B. 31 17
C. 51 21
D. 12 51
E. Compilation Error
Answer» E. Compilation Error


Discussion

No Comment Found

Related MCQs