1.

What is the output of this program?
#include <iostream>
#include <functional>
#include <algorithm>
using namespace std;
int main ()
{
int FirstData[] = {23, 33, 43, 52, 56};
int SecondData[] = {2, 3, 4};
int Res[6];
transform ( FirstData, FirstData + 6, SecondData, Res, divides<int>());
for (int k = 0; k < 5; k++)
{
cout << Res[k] << " ";
}
return 0;
}

A. 11 11 10 2 1
B. 11 10 2 1
C. 10 2 1
D. 2 1
E. 1
Answer» B. 11 10 2 1


Discussion

No Comment Found

Related MCQs