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

Inert gas used to make bright city lights True or False
what is the type of climate in the pacific costal plain
bruno is digging a rectangular hole. the area of the rectangle is 10 square feet. bruno digs 3 feet dow.what is the volume ​
What happens when you change the number of electrons in an atom
Predict the major and minor products of the following reaction. Name the products using systematic names.CH3CH2CH = CH2+H2O H+-----> major product + minor pr
WILL GIVE BRANLIEST Italian General, politician, Italian nationalist. Born in Sardinia, he became an apprentice seaman where he sailed the Mediterranean and g
what is the recursive formula for this arithmetic sequence? -4,3,10,17,...
What changes did Japanese militarists make when they came to power?
What is the answer to the picture
Which of the inequalities represents the statement "the absolute value of the difference of x and y is greater than 5"? A) |x - y| < 5 B) |x - y| > 5 C)