1.

What is the output of this program?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
int num[] = {11, -22, -33, 44, -55, 66, -1};
int Calculate;
Calculate = count_if ( num, num + 7, bind2nd(less<int>(), 0) );
cout << Calculate;
return 0;
}

A. 11
B. 4
C. -22
D. -33
E. -44
Answer» C. -22


Discussion

No Comment Found

Related MCQs