1.

What is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> vect;
vect.assign( 5, 50 );
for (int k = 0; k < vect.size(); k++)
{
cout << vect[k] << " ";
}
}

A. 50
B. 50 50
C. 50 50 50
D. 50 50 50 50
E. 50 50 50 50 50
Answer» F.


Discussion

No Comment Found