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 20 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
Excellent


bigsis44

  • Member
  • Posts: 317
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Alzheimer's disease affects only about 10% of people older than 65 years of age. Most forms of decreased mental function and dementia are caused by disuse (letting the mind get lazy).

Did you know?

Computer programs are available that crosscheck a new drug's possible trade name with all other trade names currently available. These programs detect dangerous similarities between names and alert the manufacturer of the drug.

Did you know?

Chronic marijuana use can damage the white blood cells and reduce the immune system's ability to respond to disease by as much as 40%. Without a strong immune system, the body is vulnerable to all kinds of degenerative and infectious diseases.

Did you know?

A good example of polar molecules can be understood when trying to make a cake. If water and oil are required, they will not mix together. If you put them into a measuring cup, the oil will rise to the top while the water remains on the bottom.

Did you know?

There are over 65,000 known species of protozoa. About 10,000 species are parasitic.

For a complete list of videos, visit our video library