Assume v is a vector of integers that has been declared and initialized. Write a statement that adds the value 42 to the vector.

.
.
Click on the title for the solution
.
.

This is the answer:

:

v.push_back(42);

Comments