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 18 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
Wow, this really help


lkanara2

  • Member
  • Posts: 329
Reply 3 on: Yesterday
YES! Correct, THANKS for helping me on my review

 

Did you know?

Patients should never assume they are being given the appropriate drugs. They should make sure they know which drugs are being prescribed, and always double-check that the drugs received match the prescription.

Did you know?

Not getting enough sleep can greatly weaken the immune system. Lack of sleep makes you more likely to catch a cold, or more difficult to fight off an infection.

Did you know?

According to the Migraine Research Foundation, migraines are the third most prevalent illness in the world. Women are most affected (18%), followed by children of both sexes (10%), and men (6%).

Did you know?

In 1835 it was discovered that a disease of silkworms known as muscardine could be transferred from one silkworm to another, and was caused by a fungus.

Did you know?

Barbituric acid, the base material of barbiturates, was first synthesized in 1863 by Adolph von Bayer. His company later went on to synthesize aspirin for the first time, and Bayer aspirin is still a popular brand today.

For a complete list of videos, visit our video library