Question: 1 ) Assume that vec 1 is an existing integer vector. Each of the following statements attempts to create a new integer vector, vec 2

1) Assume that vec1 is an existing integer vector. Each of the following statementsattempts to create a new integer vector, vec2. Indicate whether each of thesestatements is legal or illegal.
B)vectorvec2(10); legal
C)vectorvec2(10,100); legal
D)vectorvec2(vec1);
E)vectorvec2(vec1.size());

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!