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

Author Question: Which statement correctly uses C++11 to initialize a vector of ints named n with the values 10 and 20? (Read 62 times)

jjjetplane

  • Hero Member
  • *****
  • Posts: 556
Which statement correctly uses C++11 to initialize a vector of ints named n with the values 10 and 20?
vector n(10, 20);
vector n = {10, 20};
int vector n ({10}, {20});
vector n {10, 20};


Related Topics

Need homework help now?

Ask unlimited questions for free

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

Anonymous

  • Sr. Member
  • ****
  • Posts: 317
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




jjjetplane

  • Member
  • Posts: 556
Reply 2 on: May 22, 2019
Excellent


atrochim

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

 

Did you know?

Bacteria have flourished on the earth for over three billion years. They were the first life forms on the planet.

Did you know?

The heart is located in the center of the chest, with part of it tipped slightly so that it taps against the left side of the chest.

Did you know?

Side effects from substance abuse include nausea, dehydration, reduced productivitiy, and dependence. Though these effects usually worsen over time, the constant need for the substance often overcomes rational thinking.

Did you know?

There are more sensory neurons in the tongue than in any other part of the body.

Did you know?

The average human gut is home to perhaps 500 to 1,000 different species of bacteria.

For a complete list of videos, visit our video library