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

In which of the following scenarios would the use of genetic screening not be beneficial? A baby in the womb who shows evidence of a heart defect and smaller t
8 divided by 37.44 give the exact answer written as a decimal​
Energy stored in the bonds that hold together the atoms and molecules of all substances is called A. mechanical energy. B. electrical energy. C. chemic
The list below shows some events which took place at different periods in the geologic time scale. 1. Sharks appear. 2. Insects appear. 3. Fishes with jaws app
How do you do punt squares?
Why is national security powers important
Where did Robert E .lee surrender and why ?
Determine the end behavior of P(x)=3x
which part of an interview would you establish a proper tone
Calculate the mass of nitrogen dioxide present in a 0.527 L container if the pressure is 225.5 kPa and the temperature is 20.1°C.