This topic contains a solution. Click here to go to the answer

Author Question: What does the following statement do?vector v(10, 2); (Read 19 times)

Destiiny22

  • Hero Member
  • *****
  • Posts: 557
What does the following statement do?
vector v(10, 2);
◦ It creates a vector object with a starting size of 2 and initializes the first element with the value 10.
◦ It creates a vector object with a starting size of 10 and initializes the first element with the value 2.
◦ It creates a vector object with a starting size of 10 and initializes all the elements with the value 2.
◦ It creates a vector object and initializes the first two elements with the values 10 and 2.


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Destiiny22 on May 22, 2019

mbcrismon

  • Sr. Member
  • ****
  • Posts: 328
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




Destiiny22

  • Member
  • Posts: 557
Reply 2 on: May 22, 2019
Great answer, keep it coming :)


emsimon14

  • Member
  • Posts: 344
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Common abbreviations that cause medication errors include U (unit), mg (milligram), QD (every day), SC (subcutaneous), TIW (three times per week), D/C (discharge or discontinue), HS (at bedtime or "hours of sleep"), cc (cubic centimeters), and AU (each ear).

Did you know?

Giardia is one of the most common intestinal parasites worldwide, and infects up to 20% of the world population, mostly in poorer countries with inadequate sanitation. Infections are most common in children, though chronic Giardia is more common in adults.

Did you know?

Elderly adults are at greatest risk of stroke and myocardial infarction and have the most to gain from prophylaxis. Patients ages 60 to 80 years with blood pressures above 160/90 mm Hg should benefit from antihypertensive treatment.

Did you know?

Pope Sylvester II tried to introduce Arabic numbers into Europe between the years 999 and 1003, but their use did not catch on for a few more centuries, and Roman numerals continued to be the primary number system.

Did you know?

Lower drug doses for elderly patients should be used first, with titrations of the dose as tolerated to prevent unwanted drug-related pharmacodynamic effects.

For a complete list of videos, visit our video library