adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    #include <vector>
    using namespace std;
    int main ()
    {
        vector<int> first;
        first.assign (7,100);
        vector<int>::iterator it;
        it=first.begin()+1;
        int myints[] = {1776,7,4};
        cout << int (first.size()) << '\n';
        return 0;
    }

a.

10

b.

9

c.

8

d.

7

Answer: (d).7

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?