Consider the following main functionwhich of the following


Consider the following main function:

int main()
    {
           cout << "Iterator example" << endl;
           vector vals;
           vector :: iterator p;
           for(int i = 0; i < 10; ++i)
                vals.push_back(i*2+1);
           // output using an iterator
           for(p = vals.begin( ); p < vals.end( ); ++p)
                cout << *p << endl;
           
    }

Which of the following is an object of a template class?

 

A. p
B. none of the above
C. vals
D.

all of the above

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Consider the following main functionwhich of the following
Reference No:- TGS01205278

Expected delivery within 24 Hours