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

How do you find the perimeter of a dented square?
Suppose theta= 11pi/12. How do you use the sum identity to find the exact value of sin theta?
How do you find the perimeter of a dented square?
Here's a story problem...."Rita's wants to estimate the number of beans in a large jar.  She takes out 100. she takes out 100 beans and marks them. Then she ret
What was an effect of nationalism in Europe in the early 1900s?
if arctan(3/5)=K    Tan(k)=?
Here's a story problem...."Rita's wants to estimate the number of beans in a large jar.  She takes out 100. she takes out 100 beans and marks them. Then she ret
How do you find the perimeter of a dented square?
At the begining of 6 grade the ratio of number of the advanced math students to the number of regular students was 3:8. However after taking the placement tests
What was an effect of nationalism in Europe in the early 1900s?