1.

What is the output of this program?
#include <iostream>
#include <functional>
#include <numeric>
using namespace std;
int mnewfunction (int n, int m)
{
return n + 3 * m;
}
struct N
{
int operator()(int n, int m)
{
return n + 3 * m;
}
} structObject;
int main ()
{
int a = 200;
int Arr[] = {11, 21, 31};
cout << accumulate (Arr, Arr + 3, a, minus<int>() );
cout << endl;
return 0;
}

A. 21
B. 31
C. 200
D. 137
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs