Drobinson5587 Drobinson5587
  • 13-07-2019
  • Computers and Technology
contestada

The statement ____ declares intList to be a vector and the component type to be int

A.
vector intList;

B.
int.vector intList;

C.
int.vector intList;

Respuesta :

Limosa
Limosa Limosa
  • 21-07-2019

Answer: vector<int> intList

Explanation:

Using the above declaration we can declare intList to be a vector and the component type to be int.

example:

int main()

{

vector<int> intList

   intList.push_back(1);                          

   intList.push_back(2);                          

   intList.push_back(3);                        

   printList(intList);  // printing the list

}

Answer Link

Otras preguntas

Just this question I've tried but don't understand it
Darwin observed many fossils during his time in the Galápagos Islands and along his voyage. What did he learn from these fossils? A.Earth was older than what wa
How do you find the number of degrees in an angle
Ou get paid $7.25 per hour for doing yard work. you earned $79.75 last week. which equation shows how to calculate the number of hours you worked last week?
How do you change a fraction into a percent?
What is the value of n?
What does biography mean
The perimeter of an isosceles triangle is 110 m two of the links are 40 and 30 m what is the area of the triangle
Decimals as mixed numbers in their lowest term
When a sex cell, divides what is the result