Question: What does the following statement do ? It creates a vector object with a starting size of 2 and initializes the first element with the

What does the following statement do?
It creates avectorobject with a starting size of2and initializes the first element with the value10.
It creates avectorobject with a starting size of10and initializes the first element with the value2.
It creates avectorobject with a starting size of10and initializes all the elements with the value2.
It creates avectorobject and initializes the first two elements with the values10and2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!