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 22 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
:D TYSM


Liddy

  • Member
  • Posts: 342
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

The modern decimal position system was the invention of the Hindus (around 800 AD), involving the placing of numerals to indicate their value (units, tens, hundreds, and so on).

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

Did you know?

More than 4.4billion prescriptions were dispensed within the United States in 2016.

Did you know?

There are approximately 3 million unintended pregnancies in the United States each year.

Did you know?

The word drug comes from the Dutch word droog (meaning "dry"). For centuries, most drugs came from dried plants, hence the name.

For a complete list of videos, visit our video library