1.

What is the output of this program?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main ()
{
int Array[] = {45, 85, 65, 75, 85, 45, 85, 45, 85, 45};
int countData = count (Array, Array + 10, 45);
cout << countData << " ";
vector<int> num (Array, Array + 10);
countData = count (num.begin(), num.end(), 85);
cout << countData;
return 0;
}

A. 1 1
B. 2 2
C. 3 3
D. 4 4
E. 5 5
Answer» E. 5 5


Discussion

No Comment Found

Related MCQs